# Set an API key `PUT /v1/credential-profiles/{profile}/keys/{credential}` **In this build:** Real. **Scope:** `credential.write` **CLI:** `harebox ai key set` ## Request: `SecretValue` | Field | Type | Notes | |---|---|---| | `value` (required) | `string` | | ## Response: 204 No content. Errors follow [one format](../errors.html).