API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

PATCH /v1/api-keys/{id}

PATCH/v1/api-keys/{id}

Update an API key. Token plaintext cannot be changed; rotate to replace.

Request body

NameTypeDescription
labelstring
descriptionstring
permissionsstring[]
allowedSchemasarraynull
allowedMethodsarraynull
ipAllowlistarraynull
expiresAtstring,null<date-time>

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X PATCH https://api.codemeta-os.de/v1/api-keys/{id} \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "label": "string",
  "description": "string",
  "permissions": [],
  "allowedSchemas": null,
  "allowedMethods": null,
  "ipAllowlist": null,
  "expiresAt": null
}'
const result = await cm.api-keys.patch({
  "label": "string",
  "description": "string",
  "permissions": [],
  "allowedSchemas": null,
  "allowedMethods": null,
  "ipAllowlist": null,
  "expiresAt": null
});

Response codes

HTTP Meaning
200 Default Response

Search