ApiKeys

Renames a key or replaces its scopes. Scope changes apply from the next request. A key can only grant scopes it holds itself (403 insufficient_scope).

patch/auth/keys/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Request body

ApiKeyUpdateRequest required
name, string

A new label for the key.

scopes, string[]

Replaces the key's scopes. Takes effect on the next request.

Response

The updated key

ApiKey required
object, string required
id, string required
name, string nullable required
last4, string required
token_type, string required
kind, 'personal' | 'team' required

personal acts as the person who made it; team sees only what the whole account sees.

scopes, string[] nullable required

What the key may call. Null for a key made before scopes existed, which reaches everything.

token, string nullable required
last_used_at, string nullable required
expires_at, string nullable required
created_at, string required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision