org.atgrp.mod.submitReport
Report an account or record in a group, opening or reopening it in the moderation queue. The caller must be able to read the subject's space. Requires service auth.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | mod.atgrp.org |
| Commit rev | 3n36c4qgn4w2w |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Report an account or record in a group, opening or reopening it in the moderation queue. The caller must be able to read the subject's space. Requires service auth.",
"errors": [
{
"name": "GroupNotFound"
},
{
"description": "The subject isn't in this group.",
"name": "InvalidSubject"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"cid": {
"description": "If set, a specific version of the record.",
"format": "cid",
"type": "string"
},
"group": {
"format": "did",
"type": "string"
},
"reason": {
"maxGraphemes": 2000,
"maxLength": 20000,
"type": "string"
},
"reasonType": {
"description": "For reasonViolation, cite the broken rule in rule.",
"ref": "org.atgrp.mod.defs#reasonType",
"type": "ref"
},
"rule": {
"description": "The group rule the subject breaks.",
"format": "at-uri",
"type": "string"
},
"subject": {
"description": "An account DID or record URI.",
"format": "uri",
"type": "string"
}
},
"required": [
"group",
"subject",
"reasonType"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"eventId": {
"maxLength": 512,
"minLength": 1,
"type": "string"
}
},
"required": [
"eventId",
"createdAt"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "org.atgrp.mod.submitReport",
"lexicon": 1
}