Act on a task
curl --request POST \
--url https://api.eka.care/protocol/workflow/tasks/{id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.eka.care/protocol/workflow/tasks/{id}"
payload = { "note": "<string>" }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.eka.care/protocol/workflow/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/protocol/workflow/tasks/{id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/protocol/workflow/tasks/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"note\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/protocol/workflow/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"scope": {
"type": "ADMISSION",
"id": "<string>"
},
"type": "<string>",
"status": "IN_PROGRESS",
"meta": {
"form_kind": "SA",
"sa_id": "<string>",
"template_id": "<string>"
},
"title": "<string>",
"description": "<string>",
"payload": {},
"requiredness": "MANDATORY",
"blocking": true,
"audience_keys": [
"<string>"
],
"estimate": "<string>",
"escalation": {
"after": "<string>",
"audience_keys": [
"<string>"
],
"title": "<string>"
},
"task_id": "<string>",
"bid": "<string>",
"assignee": "<string>",
"assignee_name": "<string>",
"source": {
"kind": "SYSTEM",
"event_id": "<string>",
"event_name": "<string>",
"fired_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"rule_id": "<string>",
"rule_version": 123,
"run_id": "<string>",
"index": 123,
"iteration": 123
},
"parent_task_id": "<string>",
"child_task_ids": [
"<string>"
],
"completed_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"due_at": "<string>",
"scheduled_at": "<string>",
"last_action": {
"action": "COMPLETED",
"at": "<string>",
"by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
}
},
"started_at": "<string>",
"completed_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}Tasks
Act on a task
One action per call: claim, release, complete or cancel, with an optional note for the timeline. An action the task is not in a state for returns 409.
POST
/
protocol
/
workflow
/
tasks
/
{id}
Act on a task
curl --request POST \
--url https://api.eka.care/protocol/workflow/tasks/{id} \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.eka.care/protocol/workflow/tasks/{id}"
payload = { "note": "<string>" }
headers = {
"auth": "<auth>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {auth: '<auth>', 'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.eka.care/protocol/workflow/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/protocol/workflow/tasks/{id}")
.header("auth", "<auth>")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/protocol/workflow/tasks/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("auth", "<auth>");
request.AddJsonBody("{\n \"note\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/protocol/workflow/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["auth"] = '<auth>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"scope": {
"type": "ADMISSION",
"id": "<string>"
},
"type": "<string>",
"status": "IN_PROGRESS",
"meta": {
"form_kind": "SA",
"sa_id": "<string>",
"template_id": "<string>"
},
"title": "<string>",
"description": "<string>",
"payload": {},
"requiredness": "MANDATORY",
"blocking": true,
"audience_keys": [
"<string>"
],
"estimate": "<string>",
"escalation": {
"after": "<string>",
"audience_keys": [
"<string>"
],
"title": "<string>"
},
"task_id": "<string>",
"bid": "<string>",
"assignee": "<string>",
"assignee_name": "<string>",
"source": {
"kind": "SYSTEM",
"event_id": "<string>",
"event_name": "<string>",
"fired_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"rule_id": "<string>",
"rule_version": 123,
"run_id": "<string>",
"index": 123,
"iteration": 123
},
"parent_task_id": "<string>",
"child_task_ids": [
"<string>"
],
"completed_by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
},
"due_at": "<string>",
"scheduled_at": "<string>",
"last_action": {
"action": "COMPLETED",
"at": "<string>",
"by": {
"oid": "<string>",
"name": "<string>",
"ps": "D",
"s": "<string>"
}
},
"started_at": "<string>",
"completed_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"path": "<string>",
"message": "<string>"
}
]
}
}Headers
The access token. The gateway verifies it and passes the user and the business on.
Path Parameters
Minimum string length:
1Body
application/json
Was this page helpful?

