Deployments
Preview

Apply the deployment's snapshot again

Queues the snapshot the deployment wants, or the one it runs when it wants none, through the normal delivery path for its cluster or for every cluster of its environment. Use it to retry a failed apply. Answers 409 while an apply is queued or under way. Writes an Activity entry. Needs `deployment:sy

POST
/deployments/{deploymentId}/sync
cookiebetter-auth.session_token<token>

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

deploymentId*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 snapshot was queued.

application/json
  1. response
snapshotId*string

The snapshot that was queued again.

Formatuuid
Example Request
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/sync'
Example Response
{  "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861"}