Rename channel
Changes the name of the channel
Function RenameChannel(Val Token, Val Channel, Val Name) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Bot token |
| Channel | --channel | String | ✔ | Channel ID |
| Name | --title | String | ✔ | New channel name |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
1C:Enterprise/OneScript code example
Token = "xoxb-6965308400114-696804637...";
Channel = "C09PEK91FU3";
Name = "testconv" + String(New UUID);
Result = OPI_Slack.RenameChannel(Token, Channel, Name);
- Bash
- CMD/Bat
oint slack RenameChannel \
--token "***" \
--channel "C09PKF1G8M9" \
--title "testconv0e2202f2-d5a0-428c-afb9-dbbcbac45024"
oint slack RenameChannel ^
--token "***" ^
--channel "C09PKF1G8M9" ^
--title "testconv0e2202f2-d5a0-428c-afb9-dbbcbac45024"
Result
{
"ok": true,
"channel": {
"id": "C09PUMJU2GM",
"created": 1761911221,
"creator": "U06UG1CAYH2",
"is_org_shared": false,
"is_im": false,
"context_team_id": "T06UD92BS3C",
"updated": 1761911229171,
"name": "testconv352050bb-815f-46f6-9706-9188795c5c6e",
"name_normalized": "testconv352050bb-815f-46f6-9706-9188795c5c6e",
"is_channel": true,
"is_group": false,
"is_mpim": false,
"is_private": false,
"is_archived": false,
"is_general": false,
"is_shared": false,
"is_ext_shared": false,
"unlinked": 0,
"is_pending_ext_shared": false,
"pending_shared": [],
"parent_conversation": null,
"purpose": {
"value": "TestGoal",
"creator": "U06UG1CAYH2",
"last_set": 1761911223
},
"topic": {
"value": "TestTopic",
"creator": "U06UG1CAYH2",
"last_set": 1761911222
},
"shared_team_ids": [
"T06UD92BS3C"
],
"pending_connected_team_ids": [],
"is_member": true,
"last_read": "1761911224.753879",
"previous_names": [
"testconvc05a3175-6801-4217-9490-93d7fa92c7ea"
]
}
}