Pipeline Tasks
Reopen a completed/cancelled task
Reopen a task (also reopens all its subtasks)
POST
/
api
/
v1
/
pipelines
/
{pipeline_id}
/
pipeline_tasks
/
{id}
/
reopen
Reopen a completed/cancelled task
curl --request POST \
--url https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen \
--header 'api_access_token: <api-key>'import requests
url = "https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen"
headers = {"api_access_token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {api_access_token: '<api-key>'}};
fetch('https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen")
.header("api_access_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_access_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pipeline_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"task_type": "call",
"status": "pending",
"priority": "low",
"due_date": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assigned_to_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"depth": 123,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatar_url": "<string>",
"available_name": "<string>"
},
"assigned_to": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatar_url": "<string>",
"available_name": "<string>"
},
"parent_task": "<unknown>",
"subtasks": "<array>",
"subtask_count": 123,
"overdue": true,
"due_soon": true,
"days_until_due": 123,
"hours_until_due": 123,
"descendants_reopened_count": 123
},
"message": "<string>"
}⌘I
Reopen a completed/cancelled task
curl --request POST \
--url https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen \
--header 'api_access_token: <api-key>'import requests
url = "https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen"
headers = {"api_access_token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {api_access_token: '<api-key>'}};
fetch('https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"api_access_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("api_access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen")
.header("api_access_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/pipelines/{pipeline_id}/pipeline_tasks/{id}/reopen")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_access_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pipeline_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"task_type": "call",
"status": "pending",
"priority": "low",
"due_date": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assigned_to_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"depth": 123,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatar_url": "<string>",
"available_name": "<string>"
},
"assigned_to": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"avatar_url": "<string>",
"available_name": "<string>"
},
"parent_task": "<unknown>",
"subtasks": "<array>",
"subtask_count": 123,
"overdue": true,
"due_soon": true,
"days_until_due": 123,
"hours_until_due": 123,
"descendants_reopened_count": 123
},
"message": "<string>"
}