org. atgrp. mod. querySubjectHistory
Get a subject's moderation history. Requires auth as the group.
- Kind
- A method (query)
- Part of
- The standard
- Record
at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.mod.querySubjectHistory- In the spec
org., the same as published here.atgrp. mod. querySubjectHistory
main query
Parameters
| Field | Type | Description |
|---|---|---|
cid | string (cid) | If set, only this version of the record. |
sort | string
| |
limit | integer
| |
cursor | string | |
subject (required) | string (uri) | An account DID or record URI. |
Output
Encoding: application/json
| Field | Type | Description |
|---|---|---|
cursor | string | |
events (required) | array of org. |
Errors
InvalidSubject: The subject isn't in this group.InvalidCursor
The schema as published
{
"id": "org.atgrp.mod.querySubjectHistory",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "InvalidSubject",
"description": "The subject isn't in this group."
},
{
"name": "InvalidCursor"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"events"
],
"properties": {
"cursor": {
"type": "string"
},
"events": {
"type": "array",
"items": {
"ref": "org.atgrp.mod.defs#eventView",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"subject"
],
"properties": {
"cid": {
"type": "string",
"format": "cid",
"description": "If set, only this version of the record."
},
"sort": {
"type": "string",
"default": "newest",
"knownValues": [
"newest",
"oldest"
]
},
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"subject": {
"type": "string",
"format": "uri",
"description": "An account DID or record URI."
}
}
},
"description": "Get a subject's moderation history. Requires auth as the group."
}
},
"lexicon": 1
}