Authorizations
API key authentication
Body
application/json
Request to remove assignments from one or more incidents
List of incident IDs to unassign
Response
Response containing the updated incidents after unassignment
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:unassign';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"incidentIds":[["incident_id_1","incident_id_2"]]}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));{
"incidents": [
{
"assignments": [
{
"assignedBy": {
"userId": "<any>"
},
"assignedTo": {
"userId": "<any>"
}
}
],
"closedAt": "2024-01-01T00:00:00.000Z",
"contextualLabels": [
{
"key": "<string>",
"value": "<string>"
}
],
"createdAt": "2024-01-01T00:00:00.000Z",
"description": "incident_description",
"displayLabels": [
{
"key": "<string>",
"value": "<string>"
}
],
"duration": "<string>",
"events": [
{
"administrativeEvent": {
"userId": "<string>"
},
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"durationMinutes": 123,
"startTime": "2023-11-07T05:31:56Z",
"userId": "<string>"
}
}
],
"id": "incident_id",
"isMuted": false,
"lastStateUpdateKey": "last_state_update_key",
"lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
"metaLabels": [
{
"key": "key",
"value": "value"
}
],
"name": "incident_name",
"severity": "INCIDENT_SEVERITY_UNSPECIFIED",
"state": "INCIDENT_STATE_UNSPECIFIED",
"status": "INCIDENT_STATUS_UNSPECIFIED"
}
]
}Remove user assignments from one or more incidents.
Requires the following permissions:
incidents:assignconst fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:unassign';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"incidentIds":[["incident_id_1","incident_id_2"]]}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));{
"incidents": [
{
"assignments": [
{
"assignedBy": {
"userId": "<any>"
},
"assignedTo": {
"userId": "<any>"
}
}
],
"closedAt": "2024-01-01T00:00:00.000Z",
"contextualLabels": [
{
"key": "<string>",
"value": "<string>"
}
],
"createdAt": "2024-01-01T00:00:00.000Z",
"description": "incident_description",
"displayLabels": [
{
"key": "<string>",
"value": "<string>"
}
],
"duration": "<string>",
"events": [
{
"administrativeEvent": {
"userId": "<string>"
},
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"durationMinutes": 123,
"startTime": "2023-11-07T05:31:56Z",
"userId": "<string>"
}
}
],
"id": "incident_id",
"isMuted": false,
"lastStateUpdateKey": "last_state_update_key",
"lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
"metaLabels": [
{
"key": "key",
"value": "value"
}
],
"name": "incident_name",
"severity": "INCIDENT_SEVERITY_UNSPECIFIED",
"state": "INCIDENT_STATE_UNSPECIFIED",
"status": "INCIDENT_STATUS_UNSPECIFIED"
}
]
}API key authentication
Request to remove assignments from one or more incidents
List of incident IDs to unassign
Response containing the updated incidents after unassignment
Show child attributes
Was this page helpful?