02-13-2018 11:27 PM - edited 02-13-2018 11:29 PM
I'd like to do a PATCH request on a yes/no customField. But when I send this to a 1.0.236.0 api:
PATCH /api/contacts/9a107707-8720-49c3-b126-be09c26b3747
body:
{
"customFields": {
"ishoofdcontact": true
}
}
I get back a 400 Bad request with empty response body.
Why?
02-14-2018 10:04 AM - edited 02-14-2018 10:04 AM
Try including the id in the body as well. It validate the id in the body with the id in the url.
PATCH /api/contacts/9a107707-8720-49c3-b126-be09c26b3747
body:
{
"id": "9a107707-8720-49c3-b126-be09c26b3747",
"customFields": {
"ishoofdcontact": true
}
}