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