Skip to main content

When to use

  • Change the scopes of an existing API key (e.g., add projects:read scope)
  • Rename a key for better identification
  • Update the description of a key

Prerequisites

  • codika CLI installed and authenticated
  • API key with api-keys:manage scope
  • Caller must be an admin or owner in the organization
  • The key ID of the key to update (from the platform dashboard or create-key output)

Command

Options

At least one of --scopes, --name, or --description must be provided. When --scopes is provided, it replaces the existing scopes entirely.

Available scopes

Examples

Output

Human-readable (default)

JSON output (--json)

Exit codes