Problem
When creating an HTTP request with a URL encoded content-type, xMatters sets it as JSON.
Environment
All versions of xMatters
Resolution
The Integration Builder automatically sets the content to the relevant type. You can override this by converting the content to a string (using back ticks), for example:
body = `[
{
"op": "add",
"path": "/fields/System.Title",
"from": null,
"value": input['workItemTitle']
},
{
"op": "add",
"path": "/fields/System.Description",
"from": null,
"value": input['workItemDescription']
}
]`
;
Cause
If the Integration Builder detects the content provided as JSON, it sets the content type as JSON by default.
Comments
0 commentsPlease sign in to leave a comment.