fyi.opensocial.createReport
Report an account or record in a group, opening or reopening it in the moderation queue. Uses service auth from the caller, who must be able to read the subject's space.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | opensocial.fyi |
| 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. Uses service auth from the caller, who must be able to read the subject's space.",
"errors": [
{
"description": "The group isn't hosted here.",
"name": "GroupNotFound"
},
{
"description": "The subject isn't an account or record in this group.",
"name": "InvalidSubject"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"group": {
"description": "The group DID.",
"format": "did",
"type": "string"
},
"reason": {
"maxGraphemes": 2000,
"maxLength": 20000,
"type": "string"
},
"reasonType": {
"ref": "com.atproto.moderation.defs#reasonType",
"type": "ref"
},
"rule": {
"description": "A rule in the group's meta space.",
"format": "at-uri",
"type": "string"
},
"subject": {
"refs": [
"fyi.opensocial.defs#accountSubject",
"fyi.opensocial.defs#recordSubject"
],
"type": "union"
}
},
"required": [
"group",
"subject",
"reasonType"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"id": {
"maxLength": 512,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"createdAt"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "fyi.opensocial.createReport",
"lexicon": 1
}