Try to POST Custom Activity Error

Anonymous
Not applicable

Try to POST Custom Activity Error

I'm trying to create a new custom Activity on a lead using the REST API and PHP:

http://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Activi...

[success] =>

  [errors] => Array

  (

  [0] => stdClass Object

  (

  [code] => 612

  [message] => Invalid Content Type

  )

  )

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Try to POST Custom Activity Error

Post the request payload, not just the error (and try to use a monospace font for sanity!).  Code 612 is straightforward: you need C-T: application/json.

Anonymous
Not applicable

Re: Try to POST Custom Activity Error

@Sanford

I had the wrong structure for the request but I fixed it.

Thanks

SanfordWhiteman
Level 10 - Community Moderator

Re: Try to POST Custom Activity Error

OK, pls mark my post as Correct for future searches.