# Creates or updates an OpenAI integration API key **PUT** `/v1/integrations/openai/{id}/api-key` **Operation ID**: `upsertApiKey_7` **Summary**: Creates or updates an OpenAI integration API key Creates an API key for an OpenAI integration if it doesn't exist and updates it otherwise. If the key is updated while the integration is being used by a pipeline, the new key will be picked at pipeline restart, rescaling or an update. ## Tags - OpenAI Integration ## Parameters - **id** (required) - path - Type: string ## Request Body **Content-Type**: `application/json` **Schema**: `SecretApi` ## Responses ### 204 API key upserted successfully. ### 401 Unauthorized ### 404 Integration not found.