OpenCode Servers
Update an OpenCode Server
Changes the name, labels and guardrails of a server that is not deleted. Requires If-Match with the server’s etag.
PATCH
Update an OpenCode Server
Headers
Path Parameters
Body
application/json
Fields left out stay as they are. labels replaces the whole map; features changes only the toggles named.
Response
OpenCode Server updated
ACTIVE: serves OpenCode protocol traffic. SUSPENDED: the gateway refuses protocol traffic until it is resumed. DELETED: terminal; the id stays reserved. SUSPENDING, RESUMING and DELETING: a requested change is in progress; its Operation finishes when the server reached the new state. A deletion always finishes.
Available options:
ACTIVE, SUSPENDING, SUSPENDED, RESUMING, DELETING, DELETED Update an OpenCode Server