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
| Nom | Type | Description |
|---|
label | string | |
description | string | |
permissions | string[] | |
allowedSchemas | arraynull | |
allowedMethods | arraynull | |
ipAllowlist | arraynull | |
expiresAt | string,null<date-time> | |
Paramètres de chemin
| Nom | Type | Description |
|---|
idobligatoire | string | |
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 |