DOCS / API REFERENCE

Deploy to edge perches

POST /v1/perches/deploy

POSTHenHouse API v1

Request

POST /v1/perches/deploy

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

Parameters

NameTypeDescription
regionsarrayList of region IDs, or ["all"]
egg_idstringArtifact to deploy

Example

curl -X POST https://api.pollosoft.example/v1/perches/deploy \
  -H "Authorization: Bearer $COOP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"regions": [], "egg_id": "example-egg_id"}'

Response

A successful call returns 201 Created with JSON like this:

{
  "id": "prc_0192",
  "regions": 212,
  "status": "propagating"
}

Errors

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