REST-specific tips
- Verify that the Service URL is correctly formatted – for example, it doesn’t have an extra “slash” at the end. This can result in “Unexpected exception” errors.
Incorrect:POST /rest/api/v1.1/campaigns/SpecialSaleEmailCampaign/email/
Correct:POST /rest/api/v1.1/campaigns/SpecialSaleEmailCampaign/email
- Verify that you are using the correct Content-Type header:
- For authentication tasks, the Content-Type header must be
application/x-www-form-urlencoded
. - For all other tasks that involve sending a request body, the Content-Type header must be
application/json
.
- For authentication tasks, the Content-Type header must be