Update API Key
**CLI:**
```bash
agentmail inboxes api-keys update --inbox-id <inbox_id> --api-key-id <api_key_id> --name "Renamed"
```
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
inbox_id
The ID of the inbox.
api_key_id
ID of api key.
Request
This endpoint expects an object.
name
Name of api key.
permissions
Granular permissions for the API key. When ommitted all permissions are granted. Otherwise, only permissions set to true are granted.
Response
This endpoint returns an object.
Bearer API Key
OR
Public Key Credential
Errors
400
Validation Error
404
Not Found Error
