Update API Key

**CLI:** ```bash agentmail pods api-keys update --pod-id <pod_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

pod_idstringRequired
ID of pod.
api_key_idstringRequired
ID of api key.

Request

This endpoint expects an object.
namestringOptional
Name of api key.
permissionsobjectOptional
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 Keyobject
OR
Public Key Credentialobject

Errors

400
Validation Error
404
Not Found Error