Executes one authorized Direct command through the common transaction and replay boundary.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/tasks/runtime/tasks/example/commands"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"OperationId\": \"example\", \"RowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"Action\": \"example\", \"WorkerId\": \"example\", \"InterruptionReasonId\": \"example\", \"Reason\": \"example\", \"OutcomeId\": \"example\", \"ClearAssignment\": true }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};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/commands';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"OperationId":"example","RowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","Action":"example","WorkerId":"example","InterruptionReasonId":"example","Reason":"example","OutcomeId":"example","ClearAssignment":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/tasks/runtime/tasks/example/commands \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "OperationId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Action": "example", "WorkerId": "example", "InterruptionReasonId": "example", "Reason": "example", "OutcomeId": "example", "ClearAssignment": true }'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.
Request Body
Section titled “Request Body”A closed command intent. Each action also rejects fields belonging to another action.
object
Explicitly removes the selected assignment. Requires a null WorkerId and an assign-owner or assign-responsible action.
Examplegenerated
{ "OperationId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Action": "example", "WorkerId": "example", "InterruptionReasonId": "example", "Reason": "example", "OutcomeId": "example", "ClearAssignment": true}A closed command intent. Each action also rejects fields belonging to another action.
object
Explicitly removes the selected assignment. Requires a null WorkerId and an assign-owner or assign-responsible action.
Examplegenerated
{ "OperationId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Action": "example", "WorkerId": "example", "InterruptionReasonId": "example", "Reason": "example", "OutcomeId": "example", "ClearAssignment": true}A closed command intent. Each action also rejects fields belonging to another action.
object
Explicitly removes the selected assignment. Requires a null WorkerId and an assign-owner or assign-responsible action.
Examplegenerated
{ "OperationId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Action": "example", "WorkerId": "example", "InterruptionReasonId": "example", "Reason": "example", "OutcomeId": "example", "ClearAssignment": true}Responses
Section titled “Responses”OK
object
object
Authorized task projection; Moltaro.Tasks.Runtime.TaskRuntimeTask.Context carries the canonical business Context identity when the task is linked.
object
Stable identity of one Moltaro resource instance.
object
When a Postponed Task returns to Idle; null in every other state.
object
object
object
object
Example
{ "Data": { "Result": { "State": 0, "Mode": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}