Change a channel's settings or target

http
PATCH /projects/{project_reference}/channels/{channel_id}

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

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
channel_idpathYes

Request body

FieldTypeRequiredDescription
agent_idstringAgent from the same runtime target; checked against the selected target again. Omission keeps the current agent. Updating does not require the caller Slack connection.
namestringDisplay name, 1-255 characters
respond_tostringWhich Slack messages to answer: mentions, direct_messages or all
allowed_slack_channel_idsarraySlack channel IDs. Overlap with another channel in the same workspace is rejected with resource-already-exists. IDs come from listSlackChannels (MCP: list_slack_channels); empty means every Slack channel the bot is in. A preview_branch target needs at least one.
welcome_messagestring,nullWelcome message. Omission keeps the value; null clears it.
error_messagestring,nullError message. Omission keeps the value; null clears it.
max_response_tokensinteger,nullMaximum response tokens. Omission keeps the value; null clears it.
runtime_target_kindstringRuntime target: main_branch, environment or preview_branch
target_environment_idstring,nullEnvironment ID; required when runtime_target_kind is environment
target_branch_idstring,nullBranch ID; required when runtime_target_kind is preview_branch

Responses

StatusDescription
200Updated channel
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error