All,
Please disregard the title, I thought I had a different issue but now it looks like it's this.
I'm trying to update fields via the API call
PATCH /orgs/{org_id}/incidents/{id}. It's working fine for most field types, but I'm having issues when I try to edit a Boolean field.
This PatchDTO works (for a select field)
{
"changes": [
{
"field": {
"name": "select_field_api_name"
},
"old_value": {
"object": {
"id": 840
}
},
"new_value": {
"object": {
"id": 841
}
}
}
]
}But this PatchDTO doesn't (for a boolean field):
{
"changes": [
{
"field": {
"name": "boolean_field_api_name"
},
"old_value": {
"object": {
"boolean": false
}
},
"new_value": {
"object": {
"boolean": true
}
}
}
]
}
here's the response I get from the Interactive API page for the boolean field:
{
"success": false,
"title": null,
"message": "Bad Request",
"hints": [],
"error_code": "generic"
}
If anyone has any ideas I'd greatly appreciate it!
Thanks!