Try to POST Custom Activity Error | Community
Skip to main content
November 3, 2016
Question

Try to POST Custom Activity Error

  • November 3, 2016
  • 1 reply
  • 1442 views

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/#!/Activities/addCustomActivi…

[success] =>

  [errors] => Array

  (

  [0] => stdClass Object

  (

  [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.

1 reply

SanfordWhiteman
Level 10
November 3, 2016

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.

November 3, 2016

@Sanford

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

Thanks

SanfordWhiteman
Level 10
November 3, 2016

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