Skip to content

Reads assignment roles available to the current Task actor.

GET
/api/workspace/tasks/runtime/tasks/{taskId}/assignment-options
curl --request GET \
--url https://example.com/api/workspace/tasks/runtime/tasks/example/assignment-options \
--header 'Authorization: Bearer <token>'
taskId
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
object
RowVersion
string format: uuid
Roles
Array<object>
nullable
object
Participant
integer format: int32
Allowed values: 0 1 2
Action
string
nullable
Current

A permitted participant identity. A null label never implies an unassigned participant.

object
Id
string
nullable
Name
string
nullable
Position

Owner, responsible, or executor. Executor remains distinct from the Responsible evidence kind.

string
nullable
SelfId

Current actor’s Worker when that Worker may take Queue work.

string
nullable
CapacityOverrideAvailable

Retained wire member; selected-recipient capability comes from executor-capability.

boolean
CanViewWorkerLoad

The actor may read a performer candidate’s load: a Dispatcher or Task administrator of this work.

boolean
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": {
"Roles": [
{
"Participant": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}