clay api-keys list. Only the name can be changed; the secret and scopes are unchanged.
Arguments
| Argument | Description |
|---|---|
apiKeyId | API key id, e.g. the id returned by clay api-keys list. |
Flags
| Flag | Description |
|---|---|
--name <name> | New name for the API key. |
Output
| Field | Type | Description |
|---|---|---|
id | string | API key id. |
name | string | The updated name. |
scopes | string[] | Scopes granted to the key. |
workspaceId | number | undefined | Workspace the key is scoped to, when set. |
createdAt | string | ISO 8601 creation timestamp. |
updatedAt | string | ISO 8601 last-updated timestamp. |
update — it is shown only once, at creation.
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | --name is missing or empty. |
not_found | 6 | No API key with that id found. |
auth_forbidden | 3 | You do not have permission to manage API keys. |

