v1

latestOpenAPI 3.1.02026-08-044257268.7 KB
API Keys

Update an API key

Updates an API key's metadata (currently only the label).

patch/v1/api-keys/{label}

Path parameters

labelstring required

Current label of the API key.

Example:ci-runner

Current label of the API key.

Request body

labelstring

New label for the key.

Example request

{
  "label": "ci-runner-renamed"
}

Response

Updated API key metadata (never the full key)

labelstring required

Human-readable label. Unique per workspace.

keyPrefixstring required

Display prefix of the key (e.g. "monid_test_a1b2c3d4...").

createdBystring required

User id of the creator.

createdAtstring date-time required

Creation time (ISO 8601).

lastUsedAtstring date-time

Last time the key authenticated a request. Absent if never used.

Example response

{
  "label": "ci-runner",
  "keyPrefix": "monid_test_a1b2c3d4"
}