dev.knotless.createReport
Sends com.atproto.moderation.createReport to the moderation service this appview names, with a service token from the account logged in to its web pages, as `knotless mod report` does. Requires the session cookie the pages' login sets.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | knotless.dev |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Sends com.atproto.moderation.createReport to the moderation service this appview names, with a service token from the account logged in to its web pages, as `knotless mod report` does. Requires the session cookie the pages' login sets.",
"errors": [
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"reason": {
"description": "Why, as com.atproto.moderation.defs names reasons, by the last word of each.",
"knownValues": [
"spam",
"violation",
"misleading",
"sexual",
"rude",
"other"
],
"maxLength": 64,
"type": "string"
},
"subject": {
"description": "What is reported: an account's handle or DID, a repository's knotless:// URL, or the at:// URI of a record, such as a pull, an issue or a comment.",
"maxLength": 8192,
"type": "string"
},
"text": {
"description": "More on why, for the moderators.",
"maxGraphemes": 2000,
"maxLength": 20000,
"type": "string"
}
},
"required": [
"subject",
"reason"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"reportId": {
"description": "The report's number, as the moderation service gave it.",
"type": "integer"
}
},
"required": [
"reportId"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Reports an account, a repository, or what someone wrote about one, to the moderation service, as the account logged in to this appview's pages.",
"id": "dev.knotless.createReport",
"lexicon": 1
}