social.colibri.beta.channel.update
Updates a channel's configuration. An absent field leaves the current value unchanged.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | channel.beta.colibri.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Updates a channel's configuration. An absent field leaves the current value unchanged.",
"errors": [
{
"description": "The request has no valid service auth.",
"name": "AuthRequired"
},
{
"description": "The requesting user lacks the channel.update permission.",
"name": "Forbidden"
},
{
"description": "No channel matches the given space reference.",
"name": "ChannelNotFound"
},
{
"description": "No category matches the given record key.",
"name": "CategoryNotFound"
},
{
"description": "The requesting user cannot grant a role that outranks their own.",
"name": "RoleHierarchy"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"allowedMembers": {
"description": "Members allowed to post here in addition to allowedRoles. Absent leaves the current value unchanged.",
"items": {
"description": "A member permitted to post.",
"format": "did",
"type": "string"
},
"type": "array"
},
"allowedRoles": {
"description": "Roles allowed to post here. Absent leaves the current value unchanged.",
"items": {
"description": "A role permitted to post.",
"format": "record-key",
"type": "string"
},
"type": "array"
},
"category": {
"description": "The category to move the channel to. Absent leaves the current value unchanged.",
"format": "record-key",
"type": "string"
},
"channel": {
"description": "The channel to update.",
"format": "space-ref",
"type": "string"
},
"description": {
"description": "The channel's topic. Absent leaves the current value unchanged.",
"maxLength": 256,
"type": "string"
},
"linkEmbeds": {
"description": "Whether link previews are shown here. Absent leaves the current value unchanged.",
"type": "boolean"
},
"name": {
"description": "The channel's name. Absent leaves the current value unchanged.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"ownerOnly": {
"description": "Whether only community admins may post. Absent leaves the current value unchanged.",
"type": "boolean"
},
"removeLinkEmbeds": {
"description": "Clears the channel's link preview setting so the community default applies. Ignored when linkEmbeds is also given.",
"type": "boolean"
},
"visibleToMembers": {
"description": "Members that may read this channel beyond visibleToRoles.",
"items": {
"description": "A member.",
"format": "did",
"type": "string"
},
"type": "array"
},
"visibleToRoles": {
"description": "Roles that may read this channel. Empty means every member may.",
"items": {
"description": "A role.",
"format": "record-key",
"type": "string"
},
"type": "array"
}
},
"required": [
"channel"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"channel": {
"description": "The channel, after the update.",
"ref": "social.colibri.beta.community.defs#channelView",
"type": "ref"
}
},
"required": [
"channel"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.colibri.beta.channel.update",
"lexicon": 1
}