com.getorbyt.community.moderatePost
A moderator action on one post's Community-level state. Removal is scoped to the Community; only actions that change state are journaled.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | community.getorbyt.com |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.actionNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.removedReasonNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "A moderator action on one post's Community-level state. Removal is scoped to the Community; only actions that change state are journaled.",
"errors": [
{
"name": "CommunityNotFound"
},
{
"name": "InsufficientRole"
},
{
"name": "PostNotFound"
},
{
"name": "InvalidAction"
},
{
"description": "The request carried no service-auth token, or one this service could not verify for the method. Distinct from InsufficientRole: the caller's identity was never established, so no role decision was made. A client should reauthorize and retry once rather than tell the viewer they lack access.",
"name": "AuthenticationRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"action": {
"knownValues": [
"remove",
"restore",
"pin",
"unpin"
],
"type": "string"
},
"community": {
"format": "at-uri",
"type": "string"
},
"post": {
"description": "The linked app.bsky.feed.post URI.",
"format": "at-uri",
"type": "string"
},
"reason": {
"description": "Required for removal, shown to the author, and recorded in the moderation log.",
"maxLength": 1000,
"type": "string"
},
"ruleIndex": {
"description": "For removal: the Community rule the post broke, by position. Shown to the author.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"community",
"post",
"action"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"changed": {
"type": "boolean"
},
"pinned": {
"type": "boolean"
},
"removalActionId": {
"maxLength": 128,
"type": "string"
},
"removedAt": {
"format": "datetime",
"type": "string"
},
"removedReason": {
"type": "string"
},
"removedRuleIndex": {
"minimum": 0,
"type": "integer"
},
"status": {
"knownValues": [
"visible",
"removed"
],
"type": "string"
}
},
"required": [
"status",
"pinned",
"changed"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "com.getorbyt.community.moderatePost",
"lexicon": 1
}