DOCS / API REFERENCE

Rotate a secret

POST /v1/feed/{key}/rotate

POSTHenHouse API v1

Request

POST /v1/feed/{key}/rotate

Authenticate with a bearer token. Create one with POST /v1/tokens or cluck login.

Parameters

NameTypeDescription
keystringThe secret name (path)
strategystringimmediate or graceful

Example

curl -X POST https://api.pollosoft.example/v1/feed/key_8f2a/rotate \
  -H "Authorization: Bearer $COOP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"strategy": "example-strategy"}'

Response

A successful call returns 201 Created with JSON like this:

{
  "key": "DB_URL",
  "version": 9,
  "rotated": true
}

Errors

IdempotencySend an Idempotency-Key header to make retries safe. We will return the original result instead of laying a second egg.