Map a Slack channel to a TaskAgent for this installation.
Supply either `channel_id` or `channel_name`; naming a channel resolves it to an id against Slack before the mapping is stored, and the response always carries the resolved `channel_id`. Name matching ignores case and a leading `#`. `task_agent_id` must name a TaskAgent in this project. Answers 400 when neither field is given, when the channel name cannot be resolved, when the TaskAgent is not in this project, or when this installation already maps that channel.
Request
This endpoint expects an object.
task_agent_idstringRequiredformat: "uuid"
TaskAgent assigned to this channel.
channel_idstring or nullOptional<=32 characters
Slack channel ID. If omitted, resolved from channel_name.
channel_namestring or nullOptional<=255 characters
Human-readable Slack channel name. Used to resolve channel_id when not provided.
Response
Slack channel mapping created successfully
idstringformat: "uuid"
Slack channel mapping ID.
slack_installation_idstringformat: "uuid"
Parent Slack installation ID.
channel_idstring
Slack channel ID.
task_agent_idstringformat: "uuid"
TaskAgent assigned to this channel.
createdstring
When the channel mapping was created.
modifiedstring
When the channel mapping was last updated.
channel_namestring or nullOptional
Human-readable Slack channel name.