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