# Update AI API Key **PATCH /ai/ai-api-key/{id}** Update AI API key name and/or scope ## Servers - https://api-ch-gva-2.exoscale.com/v2: https://api-ch-gva-2.exoscale.com/v2 () ## Parameters ### Path parameters - **id** (string(uuid)) ### Body: application/json (object) - **name** (string) Human-readable name for the AI API key - **scope** (string) Key scope: 'public' for all deployments, or a specific deployment UUID ## Responses ### 403 403 #### Body: application/json (object) - **code** (string) Machine-readable forbidden error code - **error** (string) Forbidden error message ### 404 404 #### Body: application/json (object) - **type** (string(uri-reference)) - **title** (string) - **status** (integer) - **detail** (string) - **instance** (string(uri-reference)) - **errors** (array[object]) ### 200 200 #### Body: application/json (object) - **updated-at** (string(date-time)) Last update timestamp - **name** (string) Human-readable name for the AI API key - **scope** (string) Key scope: 'public' for all deployments, or a specific deployment UUID - **id** (string(uuid)) AI API key ID - **org-uuid** (string(uuid)) Organization UUID that owns this key - **created-at** (string(date-time)) Creation timestamp ### 400 400 #### Body: application/json (object) - **type** (string(uri-reference)) - **title** (string) - **status** (integer) - **detail** (string) - **instance** (string(uri-reference)) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)