4 Replies Latest reply on Dec 20, 2018 11:32 AM by Michael Burstein

    Using "Add to List" REST API - POST not supported

    Michael Burstein

      Hi,

       

      I'm trying to use the "Add to List" REST API to add People to a list in Marketo using:

      POST /rest/v1/lists/1156/leads.json

      {

         "input":[

            {

               "id": "1005065"

            },

            {

               "id": "1007149"

            }

         ]

      }

      I'm getting the following 605 error:

      {

         "requestId": "13e2b#167c8a54915",

          "success": false,

          "errors": [

              {

                  "code": "605",

                  "message": "Request method 'POST' not supported"

              }

          ]

      }

       

      The API doc specifically states to use POST and I've double checked that the role assigned to my API user has Read/Write to Person/Asset etc.   I tried GET and it just returns the contents of the list, as expected.  Is there a different method I should be using to add People to a static list?