Say which Sentry project reports for which deployment
Replaces the mapping. Releases that finish in a mapped deployment are made in Sentry for that project, and its errors are watched for spikes. `environments` narrows both to the named environments (empty means every one). A project is mapped once and every deployment must exist. Needs `integration:ma
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
projects*array<>items <= 200The integration.
application/json- response
standing*SentryStanding"not_connected""ok""stale"connection?syncedAt?stringdate-timesyncError?stringlastEventAt?stringWhen the last webhook was believed.
date-timetokenMask?stringThe signing token as its prefix and last four characters, such as whtok_••••3b9e.
paused*booleanrefs*array<>projects*array<>settings*projectsSeen*integerHow many projects Sentry showed at the last read.
projectsMapped*integerprojectsNotMapped*integerProjects Sentry shows that are not mapped to a deployment.
curl -X PUT 'https://wardn.example.com/api/v1/sentry/projects' \ -H 'Content-Type: application/json' \ -d '{ "projects": [ { "slug": "string", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2" } ]}'{ "standing": "not_connected", "connection": { "name": "string", "baseUrl": "string", "organization": "string", "webhookPath": "string", "signingToken": "string", "connectedAt": "2019-08-24T14:15:22Z" }, "syncedAt": "2019-08-24T14:15:22Z", "syncError": "string", "lastEventAt": "2019-08-24T14:15:22Z", "tokenMask": "string", "paused": true, "refs": [ { "field": "string", "ref": "string", "found": true } ], "projects": [ { "slug": "string", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "environments": [ "string" ] } ], "settings": { "releaseTracking": true, "resolveFixed": true, "releaseNameFormat": "{deployment}@{sha7}", "environments": [ "string" ], "spikeEnabled": true, "spikeMultiple": 2, "spikeMinutes": 1, "openIncident": true }, "projectsSeen": 0, "projectsMapped": 0, "projectsNotMapped": 0}Rotate the Sentry signing token POST
Makes a new signing token and returns it once. The old one stops working at once, so the new one must be set as the client secret of the integration in Sentry. Needs `integration:manage`.
List the projects Sentry has GET
Asks Sentry for its projects, for choosing which report for which deployment, and says which are mapped already. At most a thousand are listed. Needs `integration:manage`.