us.off-the-clock.admin.testAutomod
Runs a pair's automod rules, or draft rules in their place, over a sample record as a new version, writing and queuing nothing (D95). The AppView asks the feed generator under its own service auth. Effective admins, the community identity and the pair's own admins.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | admin.off-the-clock.us |
| Indexed |
Showing version bafyreicecmpbmyriyngpmkhskrnhpcwf4vmzvn6uhhhaknood2sq7crjfy. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Runs a pair's automod rules, or draft rules in their place, over a sample record as a new version, writing and queuing nothing (D95). The AppView asks the feed generator under its own service auth. Effective admins, the community identity and the pair's own admins.",
"errors": [
{
"name": "NotAdmin"
},
{
"name": "InvalidRequest"
},
{
"name": "InvalidRule"
},
{
"name": "AutomodUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"record": {
"properties": {
"collection": {
"format": "nsid",
"type": "string"
},
"labels": {
"description": "Labels the sample already carries.",
"items": {
"maxLength": 128,
"type": "string"
},
"type": "array"
},
"value": {
"type": "unknown"
}
},
"required": [
"collection",
"value"
],
"type": "object"
},
"rules": {
"description": "Draft rules, each a us.off-the-clock.automod.rule value with an optional rkey, run in place of the pair's rules with the same rkeys.",
"items": {
"type": "unknown"
},
"maxLength": 100,
"type": "array"
},
"space": {
"description": "The pair's TID.",
"format": "tid",
"type": "string"
}
},
"required": [
"space",
"record"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"labels": {
"items": {
"maxLength": 128,
"type": "string"
},
"type": "array"
},
"outcomes": {
"items": {
"ref": "us.off-the-clock.admin.defs#automodOutcome",
"type": "ref"
},
"type": "array"
}
},
"required": [
"outcomes",
"labels"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "us.off-the-clock.admin.testAutomod",
"lexicon": 1
}