AssignModeratorRequest

data class AssignModeratorRequest(val reportId: Long, val queueId: Long? = null, val did: Did? = null, val isPermanent: Boolean? = null)

Parameters

reportId

The ID of the report to assign.

queueId

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.

did

DID to be assigned. Defaults to the caller's DID. Admins may assign to any moderator.

isPermanent

When true, the assignment has no expiry (endAt is null). Throws AlreadyAssigned if another user already has a permanent assignment on this report.

Constructors

Link copied to clipboard
constructor(reportId: Long, queueId: Long? = null, did: Did? = null, isPermanent: Boolean? = null)

Properties

Link copied to clipboard
val did: Did?

DID to be assigned. Defaults to the caller's DID. Admins may assign to any moderator.

Link copied to clipboard

When true, the assignment has no expiry (endAt is null). Throws AlreadyAssigned if another user already has a permanent assignment on this report.

Link copied to clipboard

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.

Link copied to clipboard

The ID of the report to assign.