DOCS / API REFERENCE

Restart a hen

POST /v1/hens/{hen_id}/restart

POSTHenHouse API v1

Request

POST /v1/hens/{hen_id}/restart

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

Parameters

NameTypeDescription
hen_idstringThe hen ID (path)
gracefulbooleanDrain connections first (default true)

Example

curl -X POST https://api.pollosoft.example/v1/hens/hen_8f2a/restart \
  -H "Authorization: Bearer $COOP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"graceful": true}'

Response

A successful call returns 201 Created with JSON like this:

{
  "id": "hen_71b0",
  "status": "restarting",
  "graceful": true
}

Errors

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