Why “Invalid Content Type”

后端 未结 2 795
攒了一身酷
攒了一身酷 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.

提交回复
热议问题