org. atgrp. mod. querySubjectHistory
Get a subject's moderation history. Requires auth as the group.
- Kind
- A method (query)
- Part of
- The spec
- Named in
- File
lexicons/org/atgrp/mod/querySubjectHistory.on tangledjson - Published
- On the network, the same as the spec has it.
main query
Parameters
| Field | Type | Description |
|---|---|---|
subject (required) | string (uri) | An account DID or record URI. |
cid | string (cid) | If set, only this version of the record. |
sort | string
| |
limit | integer
| |
cursor | string |
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 in the spec
{
"lexicon": 1,
"id": "org.atgrp.mod.querySubjectHistory",
"defs": {
"main": {
"type": "query",
"description": "Get a subject's moderation history. Requires auth as the group.",
"parameters": {
"type": "params",
"required": [
"subject"
],
"properties": {
"subject": {
"type": "string",
"format": "uri",
"description": "An account DID or record URI."
},
"cid": {
"type": "string",
"format": "cid",
"description": "If set, only this version of the record."
},
"sort": {
"type": "string",
"knownValues": [
"newest",
"oldest"
],
"default": "newest"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": {
"type": "string"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"events"
],
"properties": {
"cursor": {
"type": "string"
},
"events": {
"type": "array",
"items": {
"type": "ref",
"ref": "org.atgrp.mod.defs#eventView"
}
}
}
}
},
"errors": [
{
"name": "InvalidSubject",
"description": "The subject isn't in this group."
},
{
"name": "InvalidCursor"
}
]
}
}
}