SOLVED

Re: Request Campaign REST API

Go to solution
Anonymous
Not applicable

Request Campaign REST API

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"
}
-
-
}
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Valerie_Armstro
Level 10 - Champion Alumni

Re: Request Campaign REST API

Hi Swati,

You can find a list of REST API Error Codes and their descriptions here: 
http://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.

View solution in original post

2 REPLIES 2
Valerie_Armstro
Level 10 - Champion Alumni

Re: Request Campaign REST API

Hi Swati,

You can find a list of REST API Error Codes and their descriptions here: 
http://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.
Anonymous
Not applicable

Re: Request Campaign REST API

thanks!