Update a key
unkey_update_keyChange a key's name, owner, metadata, expiry, roles, permissions or enabled state. Unkey: POST /v2/keys.updateKey.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Replace the key's metadata. | |
| name | No | New label. | |
| keyId | Yes | The key to update. | |
| roles | No | Replace the key's roles. | |
| enabled | No | Enable or disable the key. | |
| expires | No | New expiry as a Unix timestamp in milliseconds. | |
| externalId | No | Reassign the key to this identity. | |
| permissions | No | Replace the key's permissions. |