pub.chive.admin.listWarnings
List user warnings
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · query
| Kind | query |
|---|---|
| Authority | admin.chive.pub |
| Indexed |
Checks
Validunlimited-stringdefs.warning.properties.handleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.warning.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.warning.properties.reasonNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "List user warnings",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "AdminRequired"
}
],
"output": {
"encoding": "application/json",
"schema": {
"description": "Governance warnings. There is no `total`: the service returns only the rows, output validation requires every declared required field, and a `total` that nothing produces made this endpoint fail with a 500 rather than describe it. Nothing consumes a total either — the admin page renders the rows.",
"properties": {
"warnings": {
"description": "Warning records",
"items": {
"ref": "#warning",
"type": "ref"
},
"type": "array"
}
},
"required": [
"warnings"
],
"type": "object"
}
},
"parameters": {
"properties": {
"did": {
"description": "Filter by user DID",
"format": "did",
"type": "string"
},
"limit": {
"default": 50,
"description": "Maximum number of warnings",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"type": "params"
},
"type": "query"
},
"warning": {
"description": "User warning record",
"properties": {
"createdAt": {
"description": "When the warning was issued",
"format": "datetime",
"type": "string"
},
"did": {
"description": "Warned user DID",
"format": "did",
"type": "string"
},
"expiresAt": {
"description": "Warning expiry timestamp",
"format": "datetime",
"type": "string"
},
"handle": {
"description": "Warned user handle",
"type": "string"
},
"id": {
"description": "Warning ID",
"type": "string"
},
"issuedBy": {
"description": "Admin DID who issued the warning",
"format": "did",
"type": "string"
},
"reason": {
"description": "Reason for the warning",
"type": "string"
}
},
"required": [
"id",
"did",
"reason",
"issuedBy",
"createdAt"
],
"type": "object"
}
},
"id": "pub.chive.admin.listWarnings",
"lexicon": 1,
"revision": 1
}