Creates a new event service from provided data
curl --request POST \
--url https://api.rootly.com/v1/events/{incident_event_id}/services \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "incident_event_services",
"attributes": {
"incident_event_id": "<string>",
"service_id": "<string>",
"status": "operational"
}
}
}'
{
"data": {
"id": "f0024c23-6799-42e8-bcda-cbee576df168",
"type": "incident_event_services",
"attributes": {
"incident_event_id": "215702f3-5554-48cf-99f1-090bc415b35f",
"service_id": "23ca742a-4862-4758-ad6e-307c953b0426",
"status": "partial_outage"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
incident_event_service created
The response is of type object
.
curl --request POST \
--url https://api.rootly.com/v1/events/{incident_event_id}/services \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "incident_event_services",
"attributes": {
"incident_event_id": "<string>",
"service_id": "<string>",
"status": "operational"
}
}
}'
{
"data": {
"id": "f0024c23-6799-42e8-bcda-cbee576df168",
"type": "incident_event_services",
"attributes": {
"incident_event_id": "215702f3-5554-48cf-99f1-090bc415b35f",
"service_id": "23ca742a-4862-4758-ad6e-307c953b0426",
"status": "partial_outage"
}
}
}