updateChannel

Update a channel binding. Requires project.channels.write.

Arguments

  • projectReferenceID!required

    Project UUID or slug.

  • channelIdID!required

  • inputUpdateChannelInput!required

  • input.nameString

  • input.agentIdString

    Agent checked again against the selected runtime target.

  • input.respondToChannelRespondTo

    One of mentions, direct_messages, all.

  • input.allowedSlackChannelIds[String!]

    Slack channel IDs. Overlap with another channel in the same workspace is rejected with resource-already-exists. At most 250 IDs; empty means every Slack channel the bot is in. A preview_branch target needs at least one.

  • input.welcomeMessageString

  • input.errorMessageString

  • input.maxResponseTokensInt

  • input.runtimeTargetKindRuntimeTargetKind

    Selected target; the agent is checked against it again. One of main_branch, environment, preview_branch.

  • input.targetEnvironmentIdID

  • input.targetBranchIdID

Responses

mutation UpdateChannel($projectReference: ID!, $channelId: ID!, $input: UpdateChannelInput!) {  updateChannel(projectReference: $projectReference, channelId: $channelId, input: $input) {    id    projectId    platform    name    agentId    enabled    status    installationId    platformTeamId    platformBotId    workspaceName    respondTo    allowedSlackChannelIds    welcomeMessage    errorMessage    maxResponseTokens    runtimeTargetKind    targetEnvironmentId    targetBranchId    resolvedTarget {      resolvedInvokeMode    }    createdAt    updatedAt  }}
{  "data": {    "updateChannel": {      "id": "string",      "projectId": "string",      "platform": "slack",      "name": "string",      "agentId": "string",      "enabled": false,      "status": "connected",      "installationId": "string",      "platformTeamId": "string",      "platformBotId": "string",      "workspaceName": "string",      "respondTo": "mentions",      "allowedSlackChannelIds": [        "string"      ],      "welcomeMessage": "string",      "errorMessage": "string",      "maxResponseTokens": 0,      "runtimeTargetKind": "main_branch",      "targetEnvironmentId": "string",      "targetBranchId": "string",      "resolvedTarget": {        "resolvedInvokeMode": "dispatch_override"      },      "createdAt": "2026-01-01T00:00:00Z",      "updatedAt": "2026-01-01T00:00:00Z"    }  }}

The Channel! in data.updateChannel.