Reads assignment roles available to the current Task actor.
GET
/api/workspace/tasks/runtime/tasks/{taskId}/assignment-options
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/tasks/runtime/tasks/example/assignment-options"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/tasks/runtime/tasks/example/assignment-options';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/tasks/runtime/tasks/example/assignment-options \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Query Parameters
Section titled “Query Parameters”access_token
string
Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
Data
object
RowVersion
string format: uuid
Roles
Array<object>
object
Participant
integer format: int32
Action
string
Current
A permitted participant identity. A null label never implies an unassigned participant.
object
Id
string
Name
string
Position
Owner, responsible, or executor. Executor remains distinct from the Responsible evidence kind.
string
SelfId
Current actor’s Worker when that Worker may take Queue work.
string
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>
object
Code
required
string
Message
required
string
Target
string
Field
string
Metadata
object
key
additional properties
string
Type
integer format: int32
Severity
integer format: int32
Warnings
Array<object>
object
Code
required
string
Message
required
string
Target
string
Field
string
Metadata
object
key
additional properties
string
Type
integer format: int32
Severity
integer format: int32
Success
boolean
Example
{ "Data": { "Roles": [ { "Participant": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}