Checks protected Executor admission and current capacity; dispatch repeats these checks atomically.
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/executor-capability"), 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/executor-capability';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/executor-capability \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
object
Current dispatch capability for a selected Worker. A null WorkerId previews clearing assignment. CanAssign means no exception is needed; CapacityOverrideAvailable permits a reason-bearing exception. Both are advisory: dispatch repeats admission and capacity checks in its transaction.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Current dispatch capability for a selected Worker. A null WorkerId previews clearing assignment. CanAssign means no exception is needed; CapacityOverrideAvailable permits a reason-bearing exception. Both are advisory: dispatch repeats admission and capacity checks in its transaction.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Current dispatch capability for a selected Worker. A null WorkerId previews clearing assignment. CanAssign means no exception is needed; CapacityOverrideAvailable permits a reason-bearing exception. Both are advisory: dispatch repeats admission and capacity checks in its transaction.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Not Found
object
Current dispatch capability for a selected Worker. A null WorkerId previews clearing assignment. CanAssign means no exception is needed; CapacityOverrideAvailable permits a reason-bearing exception. Both are advisory: dispatch repeats admission and capacity checks in its transaction.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Current dispatch capability for a selected Worker. A null WorkerId previews clearing assignment. CanAssign means no exception is needed; CapacityOverrideAvailable permits a reason-bearing exception. Both are advisory: dispatch repeats admission and capacity checks in its transaction.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}