User

Update User Api Key

Update a user API key

Updates the name or status of a user API key.

patch/api/user/api-keys/{key_id}

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/user/api-keys/{key_id}
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

key_idstring required

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

namestring nullable

New name for the API key

statusstring nullable

New status (active/inactive)

Response

Successful Response

key_idstring required
namestring required
created_atstring nullable required
last_used_atstring nullable required
expires_atstring nullable required
statusstring required
key_previewstring nullable
actor_kindstring nullable
resource_scopeobject nullable
service_capsstring[] nullable
presetstring nullable
pat_kindstring nullable
oauth_client_idstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.