Skip to main content
POST
Queue an owner-authorized StackKits service action

Autorizaciones

Authorization
string
header
requerido

OIDC/JWKS bearer token. Self-hosted defaults to Pocket ID; SaaS uses Auth0 through the edge. PocketBase JWT is legacy migration compatibility only.

Encabezados

Idempotency-Key
string
requerido
Required string length: 1 - 128

Parámetros de ruta

serviceId
string
requerido

Canonical service runtime ID

Cuerpo

application/json

Either an agent-executed runtime action bound to a fresh inventory revision, or an owner lock action executed entirely in the control plane. The lock is not bound to an inventory observation: an owner must be able to freeze a service whose agent is unreachable.

action
enum<string>
requerido

update runs the StackKit upgrade of the owning stack to the pinned release; it is accepted only while allowed_actions advertises it.

Opciones disponibles:
start,
stop,
restart,
logs,
update
expected_inventory_revision
integer<int64>
requerido
Rango requerido: x >= 1
owner_approved
boolean
requerido

Required true for start, stop and restart; logs is read-only.

limit
integer

Logs only; defaults to 100.

Rango requerido: 1 <= x <= 200
cursor
string

Logs only; opaque StackKits cursor from the prior page.

Maximum string length: 2048

Respuesta

Action queued or exact durable replay returned

data
object
meta
object