Deployments
Preview

Accept a difference before cutover

Signs off one exact difference between what Argo CD or Flux applied and Wardn's render, on one object of the deployment's latest comparison, with why. Only a person may, never an agent. The difference must still need a person and have the `fingerprint` the caller saw (from the live diff's `review`):

POST
/deployments/{deploymentId}/import/acceptances
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
application/json
  1. body
ref*

The object a difference is on. Its API version does not take part.

fingerprint*string

The review.fingerprint the caller saw.

Lengthlength <= 80
reason*string

Why the difference is expected.

Length1 <= length <= 1024

Response Body

The difference, accepted.

application/json
  1. response

One object's difference, as accepted.

group*string
version*string
kind*string
namespace*string
name*string
review*

Where one object's difference from what Argo CD or Flux applied stands, for an imported deployment that observes.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/import/acceptances' \  -H 'Content-Type: application/json' \  -d '{  "ref": {    "group": "string",    "kind": "string",    "namespace": "string",    "name": "string"  },  "fingerprint": "string",  "reason": "string"}'
Example Response
{  "group": "string",  "version": "string",  "kind": "string",  "namespace": "string",  "name": "string",  "review": {    "state": "open",    "change": "changed",    "fingerprint": "string",    "words": "string",    "scope": "annotations",    "count": 0,    "classes": [      "content"    ],    "imagePin": "same_digest",    "hook": true,    "acceptedBy": {      "id": "string",      "name": "string"    },    "acceptedAt": "2019-08-24T14:15:22Z",    "reason": "string"  }}