Skip to content

Reads a requester result by its client-supplied OperationId, including terminal unavailable Task results.

GET
/api/workspace/tasks/runtime/queues/{queueId}/request-work/{operationId}
curl --request GET \
--url https://example.com/api/workspace/tasks/runtime/queues/example/request-work/example \
--header 'Authorization: Bearer <token>'
queueId
required
string
operationId
required
string
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

OK

Media typeapplication/json
object
Data

Current authorized requester result. Id is the opaque durable row Id; OperationId is the client’s idempotent key. Succeeded with Task=null preserves a committed result whose Task is currently unavailable to this requester; it never means NoWork and must not cause automatic resubmission or another assignment. ExistingWork is retained on historical receipts; new intents attempt a new assignment.

object
Id
string
nullable
OperationId
string
nullable
Status

Durable Queue selection operation state. Pending includes bounded scan continuations.

integer format: int32
Allowed values: 0 1 2 3 4
Replayed
boolean
ExistingWork
boolean
ReasonCode
string
nullable
Task

Authorized task projection; Moltaro.Tasks.Runtime.TaskRuntimeTask.Context carries the canonical business Context identity when the task is linked.

object
Id
string
nullable
DefinitionId
string
nullable
Number
string
nullable
Subject
string
nullable
State
integer format: int32
Allowed values: 0 1 2 3 4 5
AssignedWorkerId
string
nullable
OwnerWorkerId
string
nullable
Priority
integer format: int64
CreatedAtUtc
string format: date-time
RowVersion
string format: uuid
Description
string
nullable
DueAtUtc
string format: date-time
nullable
AvailableAtUtc
string format: date-time
nullable
SubPriority
integer format: int64
Context

Stable identity of one Moltaro resource instance.

object
ModuleKey
string
nullable
ResourceKind
string
nullable
ContextResourceId
string
nullable
ResourceObjectId
string
nullable
Mode
integer format: int32
Allowed values: 0 1
TaskQueueId
string
nullable
ManagingResponsibleWorkerId
string
nullable
QueueEnteredAtUtc
string format: date-time
nullable
QueueManualRank
string
nullable
PostponedUntilUtc

When a Postponed Task returns to Idle; null in every other state.

string format: date-time
nullable
RequestedAtUtc
string format: date-time
CompletedAtUtc
string format: date-time
nullable
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Status": 0,
"Task": {
"State": 0,
"Mode": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}