Complete UserTask
POST{basePath}/:tenant_id/tasks/:wf_run_id/:user_task_guid/result
Completes a UserTask by making it transition to DONE status if the request is successfully processed in LittleHorse Kernel.
Request
Path Parameters
tenant_id stringrequired
wf_run_id stringrequired
user_task_guid stringrequired
Header Parameters
Authorization stringrequired
- application/json
Bodyrequired
property name* UserTaskVariableValue
Responses
- 204
- 401
- 404
No Content
Tenant Id is not valid. It could also be triggered when current user/userGroup does not have permissions to complete the requested UserTask.
- application/json
- Schema
- Example (auto)
Schema
typeuri
titlestring
statusint32
detailstring
instanceuri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
No UserTask/UserTaskDef data was found in LH Kernel using the given params.
- application/json
- Schema
- Example (auto)
Schema
typeuri
titlestring
statusint32
detailstring
instanceuri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "{basePath}/:tenant_id/tasks/:wf_run_id/:user_task_guid/result");
var content = new StringContent("{}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());