PATCH /v1/api-keys/{id}
PATCH/v1/api-keys/{id}
Update an API key. Token plaintext cannot be changed; rotate to replace.
Request Body
| Name | Typ | Beschreibung |
|---|
label | string | |
description | string | |
permissions | string[] | |
allowedSchemas | arraynull | |
allowedMethods | arraynull | |
ipAllowlist | arraynull | |
expiresAt | string,null<date-time> | |
Pfad-Parameter
| Name | Typ | Beschreibung |
|---|
iderforderlich | string | |
Beispiel
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
});
Antwortcodes
| HTTP |
Bedeutung |
200 |
Default Response |