Last updated 5 hours ago
Use these operations to interact with the PagerDuty integration in Cortex.
Your API key must have the Configure integrations permission.
Configure integrations
curl -L \ --url 'https://api.getcortexapp.com/api/v1/pagerduty/default-configuration' \ --header 'Authorization: Bearer JWT'
{ "isTokenReadonly": true, "lastFour": "text" }
curl -L \ --request POST \ --url 'https://api.getcortexapp.com/api/v1/pagerduty/configuration/validate' \ --header 'Authorization: Bearer JWT'
{ "configurations": [ { "alias": "text", "isValid": true, "message": "text" } ] }
curl -L \ --request DELETE \ --url 'https://api.getcortexapp.com/api/v1/pagerduty/configurations' \ --header 'Authorization: Bearer JWT'
{ "configurations": [ { "isTokenReadonly": true, "lastFour": "text" } ] }
curl -L \ --request POST \ --url 'https://api.getcortexapp.com/api/v1/pagerduty/configuration' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{ "isTokenReadonly": true, "token": "text" }'