Skip to main content
PUT
Ensure the desired routing overlay for one exact StackKit deployment and Node

授权

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

Stable key for safely replaying this exact routing mutation.

Required string length: 1 - 256
If-Match
string

Optional optimistic-concurrency routing revision, for example "3".

路径参数

id
string
必填

Stack ID

请求体

application/json
server_id
string
必填

Exact canonical ServerRuntime target belonging to the stack and owner. For a managed lease this is the server_id exposed by the operations/ worker projection. If that read-model row is not present yet, TechStack may create only this deterministic ID from the validated exact lease.

Minimum string length: 1
mode
enum<string>
必填
可用选项:
custom-domain
domain
string
必填

Normalized custom domain; schemes, paths, ports, and wildcards are rejected.

Minimum string length: 1
示例:

"example.com"

provenance
object
必填
lease_id
string

Exact RuntimeLease for a managed target. Omit for a local/Basement ServerRuntime that genuinely has no lease; invented leases are rejected.

Minimum string length: 1
ensure_rollout
boolean
默认值:false

Request reconciliation without implying that it has already been dispatched or applied.

响应

Desired routing state persisted; no rollout was requested.

data
object
必填
meta
object
必填