Assign a report to a user. Defaults to the caller. Admins may assign to any moderator.
Input
application/jsondid
stringdid
Optional
DID to be assigned. Defaults to the caller's DID. Admins may assign to any moderator.
isPermanent
boolean
Optional
When true, the assignment has no expiry (endAt is null). Throws AlreadyAssigned if another user already has a permanent assignment on this report.
queueId
integer
Optional
Optional queue ID to associate the assignment with. If not provided and the report has been assigned on a queue before, it will stay on that queue.
reportId
integer
Required
The ID of the report to assign.
Output
application/jsonErrors
AlreadyAssigned
The report is already assigned to another user. InvalidAssignment
The report ID or queue ID is invalid. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Assign a report to a user. Defaults to the caller. Admins may assign to any moderator.",
"errors": [
{
"description": "The report is already assigned to another user.",
"name": "AlreadyAssigned"
},
{
"description": "The report ID or queue ID is invalid.",
"name": "InvalidAssignment"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"did": {
"description": "DID to be assigned. Defaults to the caller's DID. Admins may assign to any moderator.",
"format": "did",
"type": "string"
},
"isPermanent": {
"description": "When true, the assignment has no expiry (endAt is null). Throws AlreadyAssigned if another user already has a permanent assignment on this report.",
"type": "boolean"
},
"queueId": {
"description": "Optional queue ID to associate the assignment with. If not provided and the report has been assigned on a queue before, it will stay on that queue.",
"type": "integer"
},
"reportId": {
"description": "The ID of the report to assign.",
"type": "integer"
}
},
"required": [
"reportId"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "tools.ozone.report.defs#assignmentView",
"type": "ref"
}
},
"type": "procedure"
}