Why “Invalid Content Type”

后端 未结 2 796
攒了一身酷
攒了一身酷 2021-01-12 08:49

Trying to update a data field on a lead record in Marketo. Using C#. I send:

{\"action\":\"updateOnly\",\"input\":[{\"email\":\"dfranks@gm         


        
相关标签:
2条回答
  • 2021-01-12 09:33

    Content-Type is a HTTP header. Usually, you set it to application/json for REST calls.

    You should do this in the code where you generate the HTTP request or REST call.

    I found text/json as Content-Type and Accept header value in one of the marketo examples. You might try one of the two choices.

    0 讨论(0)
  • 2021-01-12 09:37

    Here are a couple of things to check:

    1. As @StephenKing mentioned, I would check that your Content-Type HTTP Header is set to "application/json".

    2. I would also confirm that the custom field you created for "leadQuality" has a String data type.

    enter image description here

    0 讨论(0)
提交回复
热议问题