Skip to main content

PATCH /api/chain/{slug}/admins/{zid}

  1. PATCH /api/chain/:slug/admins/:zid Body: { role: "admin" | "operator" | "viewer" }
MethodPATCH
Path/api/chain/{slug}/admins/{zid}
Feature areaChain & state
TagChain & State
Authpublic (no key)
Tiercomputation (public)

Parameters

Path parameters

NameTypeRequiredDescription
slugstringyes
zidstringyes

No query or header parameters are published for this operation.

Request body

Optional. Content type: application/json.

The node publishes this body as a free-form JSON object — no field schema is exposed in openapi.json. Send the fields the summary above describes; the endpoint validates them and refuses rather than guessing.

Responses

StatusMeaning
200OK
400Bad request — a parameter or body field is missing or malformed
404Not found
409Conflict — the resource is not in a state that allows this

400 body

FieldTypeRequiredDescription
okboolean — one of falseyes
errorstringnoHuman-readable message.
codestringnoStable machine-readable code, e.g. ADMIN_REQUIRED, INVALID_ZID, ZID_NOT_LINKED.

404 body

FieldTypeRequiredDescription
okboolean — one of falseyes
errorstringnoHuman-readable message.
codestringnoStable machine-readable code, e.g. ADMIN_REQUIRED, INVALID_ZID, ZID_NOT_LINKED.

409 body

FieldTypeRequiredDescription
okboolean — one of falseyes
errorstringnoHuman-readable message.
codestringnoStable machine-readable code, e.g. ADMIN_REQUIRED, INVALID_ZID, ZID_NOT_LINKED.

Call it

curl -sS -X PATCH https://zeq.me/api/chain/your-machine/admins/ZEQ7B3K9QX2M7T4V8N1C6H0DZ \
-H "Content-Type: application/json" \
-d '{}'

Generated from the live OpenAPI description (https://zeq.me/openapi.json, spec version 1.287.0) by scripts/generate-reference.mjs. Do not edit — this file is rewritten on every run.