com.getorbyt.community.updatePublication
Publishes or unpublishes a Community. Requires authenticated service authorization and a manager action advertised by the Community view.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | community.getorbyt.com |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.actionNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Publishes or unpublishes a Community. Requires authenticated service authorization and a manager action advertised by the Community view.",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "CommunityNotFound"
},
{
"name": "InsufficientRole"
},
{
"name": "InvalidState"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"action": {
"knownValues": [
"publish",
"unpublish"
],
"type": "string"
},
"community": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"community",
"action"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"changed": {
"type": "boolean"
},
"community": {
"ref": "com.getorbyt.community.defs#view",
"type": "ref"
}
},
"required": [
"community",
"changed"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "com.getorbyt.community.updatePublication",
"lexicon": 1
}