When creating an incident with the v2 create incident API, I would like to add new field in the body.
Using the example in the API reference
This works
{
“incident”: {
“type”: “incident”,
“title”: “Attack detected by K2”,
“service”: {
“id”: “PFHM59B”,
“type”: “service_reference”
},
“priority”: {
“id”: “P53ZZH5”,
“type”: “priority_reference”
},
“urgency”: “high”,
“incident_key”: “b3”,
“body”: {
“type”: “incident_body”,
“details”: “An attack detected”,
}
}
}
But as in the json below, if I add a new field “errorId” , the field is ignored.
{
“incident”: {
“type”: “incident”,
“title”: “Attack detected by K2”,
“service”: {
“id”: “PFHM59B”,
“type”: “service_reference”
},
“priority”: {
“id”: “P53ZZH5”,
“type”: “priority_reference”
},
“urgency”: “high”,
“incident_key”: “b3”,
“body”: {
“type”: “incident_body”,
“details”: “An attack detected”,
“errorId”:“123”
}
}
}
What is the best practice for adding custom fields to an incident ?