Map PagerDuty services to deployments
Replaces which deployments each PagerDuty service affects. An incident on a mapped service is linked to those deployments, with the snapshot each was running, the next time it is read. Needs `integration:manage`.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
Idempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
links*array<>The integration as it is now.
application/json- response
standing*PagerDutyStanding"not_connected""ok""stale"connection?syncedAt?stringdate-timesyncError?stringservices*array<>schedules*array<>curl -X PUT 'https://wardn.example.com/api/v1/pagerduty/services' \ -H 'Content-Type: application/json' \ -d '{ "links": [ { "serviceId": "string", "deploymentIds": [ "c1396f06-c5b2-4d97-b12c-2e5b103262d6" ] } ]}'{ "standing": "not_connected", "connection": { "baseUrl": "string", "webhookPath": "string", "webhookSecret": "string", "connectedAt": "2019-08-24T14:15:22Z" }, "syncedAt": "2019-08-24T14:15:22Z", "syncError": "string", "services": [ { "serviceId": "string", "serviceName": "string", "deploymentIds": [ "c1396f06-c5b2-4d97-b12c-2e5b103262d6" ] } ], "schedules": [ { "scheduleId": "string", "scheduleName": "string", "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55", "known": true, "onCall": [ "string" ], "emails": [ "string" ], "checkedAt": "2019-08-24T14:15:22Z", "until": "2019-08-24T14:15:22Z", "lastError": "string" } ]}Connect PagerDuty PUT
Checks the REST API key with PagerDuty before keeping anything, keeps it in the secret store, and records the connection. The first connection also makes the secret PagerDuty signs its webhooks with, and returns it once in `webhookSecret`; connecting again keeps the webhook address and secret. Point
Map PagerDuty schedules to on-call groups PUT
Replaces which schedule fills which on-call group. The group's members become the people the schedule has on call now, matched by verified email to members of the organization, and change at each handover. When PagerDuty cannot be asked, or the shift read has ended, the group is emptied: it never ke