patch
https://staging.ankatech.co/api/v3/admin/tenants//keys/
Applies RFC 7396 JSON Merge-Patch to update key metadata fields.
Workflow:
- Validates tenant access from JWT.
- Updates metadata fields in PostgreSQL.
- Publishes audit event to Kafka.
Patchable fields (see AdminKeyMergePatchRequest schema for full details):
displayName: Human-readable key name (max 255 chars).description: Key description (max 1000 chars).exportable: Boolean flag for key export permission.expiresAt: Hard expiration UTC timestamp.softLimitExpiration: Soft expiration UTC timestamp (warning threshold).maxUsageLimit: Hard usage counter limit.softUsageLimit: Soft usage counter limit (must be less thanmaxUsageLimit).
Validation rules:
displayNamelength <= 255 characters.descriptionlength <= 1000 characters.softUsageLimitmust be strictly less thanmaxUsageLimitif both are set.- Explicit
nullin the patch deletes the field (standard RFC 7396 semantics). - Absent fields leave the current value unchanged.
Authorization: requires scope admin.keys.patch.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204Key metadata updated successfully (no content).
406Not Acceptable — the request Accept header excludes every representation this endpoint produces. Per RFC 9110 §15.5.7 the response carries NO body and NO Content-Type.