API keys
Change a key's role
Makes a key an Admin key or a Member key, at once, its open tokens too.
Serverhttps://api.eu.vatis.tech
PATCH/v1/keys/{id}
Admin key only
A Member key gets 403 admin_only. Roles: Authentication and API keys.
Body fields
application/jsonkey_ and 12 hex digits.The key's name.
The key's first characters, to tell it apart.
active, expired or revoked.When it was made: ISO 8601, UTC.
When it last made a request, or
null: never used.When it stops: the start of the day after its last day, in UTC.
null: no end.When it was revoked, or
null.application/json
The key as it is now.
400 missing_parameter
No
role.400 invalid_parameter
A field that is unknown or not valid, or a query parameter. The
param names it.400 invalid_request
A body that is not a JSON object.
application/json
No key, or a wrong, revoked or expired one.
403 admin_only
A Member key.
404 not_found
No key of your workspace has that id.
application/json
The workspace's last active Admin key cannot become a Member from code: make another key Admin first.
409 key_revoked
The key is revoked.
413 request_too_large
A JSON body over 64 KB.