Attach a change ticket to a snapshot
Attaches a ServiceNow change request or a Jira issue to a snapshot at this deployment and reads it from the system at once. A ticket the system says does not exist is refused; one the system cannot be asked about now is attached and unknown until it can. A guardrail that asks for an approved change
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidIdempotency-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
snapshotId*stringuuidsystem*string"servicenow""jira"ref*stringThe change request number or the issue key, such as CHG0030001 or PAY-123.
1 <= length <= 64The ticket was attached already; this is the one that is there.
application/json- response
id*stringuuidsystem*string"servicenow""jira"ref*stringsnapshotId*stringuuidstatus*ChangeTicketStatus"approved""not_approved""unknown"state*stringThe system's own word for where the ticket is. As last said, whether or not that is still believed.
summary*stringurl*stringcheckedAt*|When Wardn last asked the system, whether or not the answer was good.
date-timeerror*stringWhy the last look failed, in a few words. Empty when it worked.
attachedBy*stringattachedAt*stringdate-timecurl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/change-tickets' \ -H 'Content-Type: application/json' \ -d '{ "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "system": "servicenow", "ref": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "system": "servicenow", "ref": "string", "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "status": "approved", "state": "string", "summary": "string", "url": "string", "checkedAt": "2019-08-24T14:15:22Z", "error": "string", "attachedBy": "string", "attachedAt": "2019-08-24T14:15:22Z"}List the change tickets attached at a deployment GET
What is attached, newest first, and what each system last said. `status` is `approved` only when the system said so recently; a ticket whose system could not be asked, or last answered long ago, is `unknown`, which no guardrail counts as approved.
Detach a change ticket DELETE
Next Page