API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

PATCH /v1/api-keys/{id}

PATCH/v1/api-keys/{id}

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

Corps de la requête

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

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

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
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche