Guardrails
Preview

Cancel a freeze

It stops holding now and stays in the list as ended.

POST
/freezes/{freezeId}/cancel
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

freezeId*string
Formatuuid
Idempotency-Key?string

Makes 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.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255

Response Body

The freeze.

application/json
  1. response
appliesToRestores*boolean
id*string
Formatuuid
name*string
reason?string
scope*array<>
kind*string
Value in"one_time""recurring"
startsAt*string
Formatdate-time
endsAt?string
Formatdate-time
schedule?

The days and hours a recurring freeze holds, in its time zone. A window does not cross midnight.

timeZone*string
runningReleases*string
Value in"pause""finish"
bypass*array<>
notify*array<>
status*string
Value in"active""planned""recurring""ended"
until?string

When an active freeze ends.

Formatdate-time
next?string

When a planned or recurring freeze next holds.

Formatdate-time
cover*
canceledAt?string
Formatdate-time
createdBy*
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://wardn.example.com/api/v1/freezes/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'
Example Response
{  "appliesToRestores": true,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "reason": "string",  "scope": [    {      "field": "class",      "op": "is",      "value": "string",      "label": "string"    }  ],  "kind": "one_time",  "startsAt": "2019-08-24T14:15:22Z",  "endsAt": "2019-08-24T14:15:22Z",  "schedule": {    "days": [      "mon"    ],    "start": "string",    "end": "string"  },  "timeZone": "string",  "runningReleases": "pause",  "bypass": [    {      "who": "string",      "can": "bypass",      "needs": "string"    }  ],  "notify": [    {      "who": "string",      "when": "string"    }  ],  "status": "active",  "until": "2019-08-24T14:15:22Z",  "next": "2019-08-24T14:15:22Z",  "cover": {    "deployments": 0,    "apps": 0,    "clusters": 0,    "leftOut": 0,    "summary": "string",    "lowered": [      "string"    ]  },  "canceledAt": "2019-08-24T14:15:22Z",  "createdBy": {    "id": "string",    "name": "string"  },  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}