Request Campaign REST API | Community
Skip to main content
March 27, 2015
Solved

Request Campaign REST API

  • March 27, 2015
  • 2 replies
  • 1290 views

Request Campaign

I am trying to Request Campaign for a lead. I input the following json and I get response as below. What am i missing in the input json. I do not want to use token.

Input Json: 
{
    "input": {
        "leads": [
            {
                "id": 238184
            }
        ]
    }
}

Response: 
{
requestId"9179#14c5c2913c2"
successfalse
errors 
[
 1]
0:   
{
code"612"
message"Invalid Content Type"
}
-
-
}
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Valerie_Armstro
Hi Swati,

You can find a list of REST API Error Codes and their descriptions here: 
developers.marketo.com/documentation/rest/error-codes/

Info for Code 612:
Invalid Content Type - If you see this error, add a content type header specifying JSON format to your request. For example, try using "content type: application/json". Please see this StackOverflow question for more details.

2 replies

Valerie_Armstro
Valerie_ArmstroAccepted solution
Level 9
March 27, 2015
Hi Swati,

You can find a list of REST API Error Codes and their descriptions here: 
developers.marketo.com/documentation/rest/error-codes/

Info for Code 612:
Invalid Content Type - If you see this error, add a content type header specifying JSON format to your request. For example, try using "content type: application/json". Please see this StackOverflow question for more details.
March 27, 2015
thanks!