curl --request PATCH \
--url https://developer.synq.io/api/incidents/v1/{incident_id}/state \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"actor": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
},
"at": "1s",
"state": "STATE_UNSPECIFIED"
}'
{
"incident": {
"id": "<string>",
"index": 123,
"name": "<string>",
"issueIds": [
"<string>"
],
"createdBy": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
},
"owner": {
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
},
"createdAt": "1s",
"updatedBy": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
},
"updatedAt": "1s",
"state": "STATE_UNSPECIFIED",
"comments": [
{
"id": "<string>",
"message": "<string>",
"createdAt": "1s",
"actor": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
}
}
]
}
}
curl --request PATCH \
--url https://developer.synq.io/api/incidents/v1/{incident_id}/state \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"actor": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
},
"at": "1s",
"state": "STATE_UNSPECIFIED"
}'
{
"incident": {
"id": "<string>",
"index": 123,
"name": "<string>",
"issueIds": [
"<string>"
],
"createdBy": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
},
"owner": {
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>"
},
"createdAt": "1s",
"updatedBy": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
},
"updatedAt": "1s",
"state": "STATE_UNSPECIFIED",
"comments": [
{
"id": "<string>",
"message": "<string>",
"createdAt": "1s",
"actor": {
"email": {
"userEmail": "jsmith@example.com"
},
"name": "<string>"
}
}
]
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success
The response is of type object
.