tools.ozone.report.createActivity
Register an activity on a report. For state-change activity types, validates the transition and updates report.status atomically.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | report.ozone.tools |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.internalNoteNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.publicNoteNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Register an activity on a report. For state-change activity types, validates the transition and updates report.status atomically.",
"errors": [
{
"description": "No report exists with the given reportId or eventId",
"name": "ReportNotFound"
},
{
"description": "The requested state transition is not permitted from the report's current status",
"name": "InvalidStateTransition"
},
{
"description": "The report is already in the status implied by this activity type",
"name": "AlreadyInTargetState"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"activity": {
"description": "The type of activity to record.",
"refs": [
"tools.ozone.report.defs#queueActivity",
"tools.ozone.report.defs#assignmentActivity",
"tools.ozone.report.defs#escalationActivity",
"tools.ozone.report.defs#closeActivity",
"tools.ozone.report.defs#reopenActivity",
"tools.ozone.report.defs#noteActivity"
],
"type": "union"
},
"eventId": {
"description": "ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.",
"type": "integer"
},
"internalNote": {
"description": "Optional moderator-only note. Not visible to reporters.",
"type": "string"
},
"isAutomated": {
"default": false,
"description": "Set true when this activity is triggered by an automated process. Defaults to false.",
"type": "boolean"
},
"publicNote": {
"description": "Optional public-facing note, potentially visible to the reporter.",
"type": "string"
},
"reportId": {
"description": "ID of the report to record activity on. Exactly one of reportId or eventId must be provided.",
"type": "integer"
}
},
"required": [
"activity"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"activity": {
"ref": "tools.ozone.report.defs#reportActivityView",
"type": "ref"
}
},
"required": [
"activity"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "tools.ozone.report.createActivity",
"lexicon": 1
}