fyi. opensocial. getSubjectHistory
Get a subject's moderation history, oldest first. Requires mod.read.
- Kind
- A method (query)
- Part of
- The reference host
- Record
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.getSubjectHistory
main query
Parameters
| Field | Type | Description |
|---|---|---|
cid | string (cid) | Narrow a record subject to one version. |
cursor | string | |
group (required) | string (did) | The group DID. Every method is served by the group's host and authorized against that group's roles. |
limit | integer
| |
subject (required) | string (uri) | An account DID or record URI. |
Output
Encoding: application/json
| Field | Type | Description |
|---|---|---|
cursor | string | |
events (required) | array of fyi. |
Errors
InvalidSubject: The subject isn't an account or record in this group.
The schema as published
{
"defs": {
"main": {
"description": "Get a subject's moderation history, oldest first. Requires mod.read.",
"errors": [
{
"description": "The subject isn't an account or record in this group.",
"name": "InvalidSubject"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cursor": {
"type": "string"
},
"events": {
"items": {
"ref": "fyi.opensocial.defs#moderationEvent",
"type": "ref"
},
"type": "array"
}
},
"required": [
"events"
],
"type": "object"
}
},
"parameters": {
"properties": {
"cid": {
"description": "Narrow a record subject to one version.",
"format": "cid",
"type": "string"
},
"cursor": {
"type": "string"
},
"group": {
"description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
"format": "did",
"type": "string"
},
"limit": {
"default": 50,
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"subject": {
"description": "An account DID or record URI.",
"format": "uri",
"type": "string"
}
},
"required": [
"group",
"subject"
],
"type": "params"
},
"type": "query"
}
},
"id": "fyi.opensocial.getSubjectHistory",
"lexicon": 1
}