{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"description": "Body of the update-channel route.",
"properties": {
"category_id": {
"description": "Move to a category or out of one.",
"pattern": "^[1-9][0-9]{0,18}$",
"type": [
"string",
"null"
]
},
"name": {
"description": "A new name, 1–100 characters once trimmed. On a group DM it is the only field the\nroute takes, and `null`, `\"\"` or blanks clear the name (`null` reads as `Some(\"\")`). A\nspace channel's name cannot be cleared.",
"type": [
"string",
"null"
]
},
"position": {
"description": "A new position.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"purpose": {
"description": "Set or clear the purpose (≤ 250).",
"type": [
"string",
"null"
]
},
"recording_audio_days": {
"description": "Voice channels only: set (0–36,500) or clear (the org default) the channel's default\naudio keep days. Needs MANAGE_CHANNELS and RECORD_CALLS.",
"format": "uint16",
"maximum": 65535,
"minimum": 0,
"type": [
"integer",
"null"
]
},
"recording_auto": {
"description": "Voice channels only: auto-record. Needs MANAGE_CHANNELS and\nRECORD_CALLS; on another channel type `400 validation_failed`, field `recording_auto`.",
"type": [
"boolean",
"null"
]
},
"recording_require_consent": {
"description": "Voice channels only: set or clear (inherit) \"declining means not joining\".\nNeeds MANAGE_CHANNELS and RECORD_CALLS.",
"type": [
"boolean",
"null"
]
},
"recording_required": {
"description": "Voice channels only: set or clear (inherit) \"record every call with more than one\nperson\". `false` never removes a rule the Space, its App or the org sets. Needs\nMANAGE_CHANNELS and RECORD_CALLS; on another channel type `400 validation_failed`,\nfield `recording_required`.",
"type": [
"boolean",
"null"
]
},
"slug": {
"description": "A new slug.",
"pattern": "^[a-z0-9][a-z0-9-]{0,79}$",
"type": [
"string",
"null"
]
},
"topic": {
"description": "Set or clear the topic (≤ 250).",
"type": [
"string",
"null"
]
},
"user_limit": {
"description": "Voice channels only: a new per-channel limit, 0–99 (0 = none). The server\nrefuses it on another channel type (`400 validation_failed`, field `user_limit`).",
"format": "uint8",
"maximum": 255,
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"title": "UpdateChannelRequest",
"type": "object"
}