Deployments
Preview

Replace the secrets a deployment refers to

Declares the whole list. A reference whose source, locator or key changed loses what was found about it until it is checked again. The request names secrets, never their values.

PUT
/deployments/{deploymentId}/secret-refs
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
refs*array<>
Itemsitems <= 100

Response Body

The references now declared.

application/json
  1. response
deploymentId*string
Formatuuid
refs*array<>
Example Request
curl -X PUT 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/secret-refs' \  -H 'Content-Type: application/json' \  -d '{  "refs": [    {      "name": "string",      "source": "k8s",      "locator": "string"    }  ]}'
Example Response
{  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "refs": [    {      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "storeId": "b8adcdc8-9238-4168-90f8-77b2d14c211c",      "name": "string",      "source": "k8s",      "locator": "string",      "key": "string",      "status": "present",      "fingerprint": "string",      "checkedAt": "2019-08-24T14:15:22Z",      "checks": [        {          "reporter": "string",          "status": "present",          "fingerprint": "string",          "detail": "string",          "checkedAt": "2019-08-24T14:15:22Z"        }      ]    }  ]}