Hi,
I’m trying to make an API call to reassign an incident while keeping the status as “acknowledged”.
I’m using this endpoint with the following request body:
{
"incident": {
"type": "incident_reference",
"status": "acknowledged",
"assignments": [
{
"assignee": {
"id": "PX****8",
"type": "user_reference",
"summary": "User"
}
}
]
}
}
which successfully acknowledges the incident but ignores the assignee field. Instead, the call will assign the incident to the user specified in the from
field:
{
"incident": {
"incident_number": 60####9,
"title": "Test incident",
"description": "Test incident",
"status": "acknowledged",
"assignments": [
{
"at": "2023-06-26T15:12:07Z",
"assignee": {
"id": "PA####M",
"type": "user_reference",
"summary": "user",
"self": "https://api.pagerduty.com/users/PA####M",
"html_url": "https://dev-########.pagerduty.com/users/PA####M"
}
}
]
...
}
}
Is this a bug? Or is there a different way that I’m supposed to be updating incidents? I vaguely remember this working as I expected in the past but have received complaints that the assignee is not being correctly set in PagerDuty.