Rule Groups Service
Events2Metrics Service
Enrichments Service
Contextual data integration service
Custom Enrichments Service
Dashboard service
Dashboard folders service
Incidents service
- POSTList incidents with filters
- GETGet incident by ID
- GETGet incident events
- POSTAcknowledge incidents
- POSTAssign incidents to a user
- POSTGet multiple incidents by IDs
- POSTClose incidents
- POSTGet available filter values
- POSTList incident events with filters
- POSTGet available incident event filter values
- POSTGet total count of incident events
- POSTGet incident aggregations
- POSTResolve incidents
- POSTRemove incident user assignments
Integration service
- GETGet all integrations
- GETGet integration definition
- GETGet deployed integration
- DELDelete integration
- GETList managed integration keys
- GETGet managed integration status
- PUTUpdate integration
- POSTSave integration registration metadata
- POSTTest integration
- GETGet RUM integration versions data
- POSTTrigger sync of RUM integration data
- GETGet integration template
- GETGet integration details
Outgoing webhooks service
- GETList outgoing webhooks
- PUTUpdate an outgoing webhook
- POSTCreate an outgoing webhook
- GETList all outgoing webhooks
- GETList IBM event notification instances
- GETList outbound webhooks summary
- POSTTest an outgoing webhook
- POSTTest an existing outgoing webhook
- GETGet outgoing webhook types
- GETGet outgoing webhook type details
- GETGet outgoing webhook
- DELDelete an outgoing webhook
Policies Service
Retentions Service
Scopes Service
SLO Service
SAML Configuration Service
Team Permissions Management Service
- GETGet Team Group By Name
- PUTUpdate Team Group
- POSTCreate Team Group
- GETGet Team Groups
- POSTAdd Users To Team Groups
- DELRemove Users From Team Groups
- GETGet Team Group
- DELDelete Team Group
- GETGet Team Group Scope
- POSTSet Team Group Scope
- GETGet Group Users
- POSTAdd Users To Team Group
- DELRemove Users From Team Group
Folders for views
Actions Service
Target Service
Alert definitions service
Alert events service
API Keys Service
Incidents service
Assign incidents to a user
Assign one or more incidents to a specific user.
Requires the following permissions:
incidents:assign
POST
/
v1
/
incidents:assign
Copy
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:assign';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"incidentIds":["incident_id_1","incident_id_2"],"assignedTo":{"userId":"user_id"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Copy
{
"incidents": [
{
"id": "incident_id",
"name": "incident_name",
"state": "INCIDENT_STATE_UNSPECIFIED",
"status": "INCIDENT_STATUS_UNSPECIFIED",
"assignments": [
{
"assignedTo": {
"userId": "user_id"
},
"assignedBy": {
"userId": "user_id"
}
}
],
"description": "incident_description",
"severity": "INCIDENT_SEVERITY_UNSPECIFIED",
"contextualLabels": {},
"displayLabels": {},
"events": [
{
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"startTime": "2023-11-07T05:31:56Z",
"durationMinutes": 123,
"userId": "<string>"
},
"assignment": {
"assignment": {
"assignedTo": {
"userId": "user_id"
},
"assignedBy": {
"userId": "user_id"
}
}
},
"unassign": {},
"upsertState": {
"stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
"payload": {
"cxEventKey": "<string>"
},
"isMuted": true
},
"acknowledge": {
"acknowledgedBy": {
"userId": "user_id"
}
},
"close": {
"closedBy": {
"userId": "user_id"
}
},
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"administrativeEvent": {
"userId": "<string>"
},
"operationalEvent": {
"systemName": "<string>"
}
}
],
"createdAt": "2024-01-01T00:00:00.000Z",
"closedAt": "2024-01-01T00:00:00.000Z",
"lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
"lastStateUpdateKey": "last_state_update_key",
"isMuted": false,
"metaLabels": [
{
"key": "key",
"value": "value"
}
],
"duration": "<string>"
}
]
}
Authorizations
API key authentication
Body
application/json
Request to assign one or more incidents to a user
Response
200
application/json
A successful response.
Response containing the updated incidents after assignment
Copy
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:assign';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"incidentIds":["incident_id_1","incident_id_2"],"assignedTo":{"userId":"user_id"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Copy
{
"incidents": [
{
"id": "incident_id",
"name": "incident_name",
"state": "INCIDENT_STATE_UNSPECIFIED",
"status": "INCIDENT_STATUS_UNSPECIFIED",
"assignments": [
{
"assignedTo": {
"userId": "user_id"
},
"assignedBy": {
"userId": "user_id"
}
}
],
"description": "incident_description",
"severity": "INCIDENT_SEVERITY_UNSPECIFIED",
"contextualLabels": {},
"displayLabels": {},
"events": [
{
"id": "incident_event_id",
"incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
"snoozeIndicator": {
"startTime": "2023-11-07T05:31:56Z",
"durationMinutes": 123,
"userId": "<string>"
},
"assignment": {
"assignment": {
"assignedTo": {
"userId": "user_id"
},
"assignedBy": {
"userId": "user_id"
}
}
},
"unassign": {},
"upsertState": {
"stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
"payload": {
"cxEventKey": "<string>"
},
"isMuted": true
},
"acknowledge": {
"acknowledgedBy": {
"userId": "user_id"
}
},
"close": {
"closedBy": {
"userId": "user_id"
}
},
"originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
"administrativeEvent": {
"userId": "<string>"
},
"operationalEvent": {
"systemName": "<string>"
}
}
],
"createdAt": "2024-01-01T00:00:00.000Z",
"closedAt": "2024-01-01T00:00:00.000Z",
"lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
"lastStateUpdateKey": "last_state_update_key",
"isMuted": false,
"metaLabels": [
{
"key": "key",
"value": "value"
}
],
"duration": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.