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

授权

Authorization
string
header
必填

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

请求头

Idempotency-Key
string
必填
Required string length: 1 - 128

路径参数

serviceId
string
必填

Canonical service runtime ID

请求体

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>
必填

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

可用选项:
start,
stop,
restart,
logs,
update
expected_inventory_revision
integer<int64>
必填
必填范围: x >= 1
owner_approved
boolean
必填

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

limit
integer

Logs only; defaults to 100.

必填范围: 1 <= x <= 200
cursor
string

Logs only; opaque StackKits cursor from the prior page.

Maximum string length: 2048

响应

Action queued or exact durable replay returned

data
object
meta
object