Change the scope, allowed tools, configuration or execution mode of a project integration by sending only the fields to change, so that an omitted field keeps its stored value; returns the updated project integration. Requires project.integrations.configure.
Arguments
projectReferenceString!requirednameString!requiredinputUpdateProjectIntegrationInput!requiredinput.scopeStringCredential scope the integration uses: project or user. The legacy end_user and endUser inputs are aliases of user.
input.allowedTools[String!]Unprefixed tool IDs the project allows. Null allows all tools. Each entry must exist in the catalog of the effective execution mode.
input.configJSONIntegration-specific configuration that must match configSchema.
input.executionModeStringExecution mode: real or mock.
Responses
mutation UpdateProjectIntegration($projectReference: String!, $name: String!, $input: UpdateProjectIntegrationInput!) { updateProjectIntegration(projectReference: $projectReference, name: $name, input: $input) { name configured createdAt updatedAt displayName icon description authType toolCount promptCount connectedForProject scope allowedTools config executionMode projectConnections { connected expired disconnected } projectUserConnections { connected expired disconnected } resolution { catalogAvailable catalogState } configSchema }}{ "data": { "updateProjectIntegration": { "name": "string", "configured": false, "createdAt": "string", "updatedAt": "string", "displayName": "string", "icon": "string", "description": "string", "authType": "string", "toolCount": 0, "promptCount": 0, "connectedForProject": false, "scope": "string", "allowedTools": [ "string" ], "config": {}, "executionMode": "string", "projectConnections": { "connected": 0, "expired": 0, "disconnected": 0 }, "projectUserConnections": { "connected": 0, "expired": 0, "disconnected": 0 }, "resolution": { "catalogAvailable": false, "catalogState": "string" }, "configSchema": {} } }}The ManagedProjectIntegration! in data.updateProjectIntegration.