Pipelines
Update a pipeline
Update pipeline details
PATCH
/
api
/
v1
/
pipelines
/
{id}
Update a pipeline
curl --request PATCH \
--url https://api.evoai.app/api/v1/pipelines/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"pipeline": {
"name": "<string>",
"description": "<string>",
"custom_fields": {
"attributes": [
"<string>"
]
}
}
}
'import requests
url = "https://api.evoai.app/api/v1/pipelines/{id}"
payload = { "pipeline": {
"name": "<string>",
"description": "<string>",
"custom_fields": { "attributes": ["<string>"] }
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pipeline: {
name: '<string>',
description: '<string>',
custom_fields: {attributes: ['<string>']}
}
})
};
fetch('https://api.evoai.app/api/v1/pipelines/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'pipeline' => [
'name' => '<string>',
'description' => '<string>',
'custom_fields' => [
'attributes' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.evoai.app/api/v1/pipelines/{id}"
payload := strings.NewReader("{\n \"pipeline\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"custom_fields\": {\n \"attributes\": [\n \"<string>\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("api_access_token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.evoai.app/api/v1/pipelines/{id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pipeline\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"custom_fields\": {\n \"attributes\": [\n \"<string>\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/pipelines/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["api_access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pipeline\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"custom_fields\": {\n \"attributes\": [\n \"<string>\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"name": "BUSSINESS",
"account_id": "37a1e39b-3579-47c2-bbb3-84829deae585",
"created_by_id": "fc8ec60f-904f-4793-878d-e1534bcedee5",
"description": "No conversation in this stage",
"pipeline_type": "sales",
"visibility": "private",
"is_active": true,
"custom_fields": {
"attributes": []
},
"item_count": 0,
"conversations_count": 0,
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-02-05T17:46:13Z",
"stages": [
{
"id": "f8171680-ca2a-4373-8342-c0c18f795e65",
"name": "New Lead",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 1,
"color": "#3B82F6",
"stage_type": 0,
"automation_rules": {
"description": "New interested contacts"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:48:46Z",
"item_count": 0
},
{
"id": "f64f1897-b85f-4d3f-ac81-ad618beb3392",
"name": "Qualification",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 2,
"color": "#F59E0B",
"stage_type": 0,
"automation_rules": {
"description": "Interest and fit verification"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:48:46Z",
"item_count": 0
},
{
"id": "753338e7-0d7c-4027-a9b1-427e35bbfa49",
"name": "Proposal",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 3,
"color": "#8B5CF6",
"stage_type": 0,
"automation_rules": {
"description": "Proposal sent and negotiation"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:48:46Z",
"item_count": 0
},
{
"id": "f6e993ef-1c29-4421-a3c6-33c95530b5a2",
"name": "Closing",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 4,
"color": "#EC4899",
"stage_type": 0,
"automation_rules": {
"description": "Conclusion and onboarding"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:49:04Z",
"item_count": 0
}
]
},
"meta": {
"timestamp": "2026-02-05T17:46:15Z"
},
"message": "Pipeline updated successfully"
}{
"success": false,
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request data"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Unauthorized"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "Forbidden"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Pipeline not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation error",
"details": {
"name": "Name is required"
}
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal server error occurred"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}Autorizações
Parâmetros de caminho
Pipeline UUID
Corpo
application/json
Show child attributes
Show child attributes
⌘I
Update a pipeline
curl --request PATCH \
--url https://api.evoai.app/api/v1/pipelines/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"pipeline": {
"name": "<string>",
"description": "<string>",
"custom_fields": {
"attributes": [
"<string>"
]
}
}
}
'import requests
url = "https://api.evoai.app/api/v1/pipelines/{id}"
payload = { "pipeline": {
"name": "<string>",
"description": "<string>",
"custom_fields": { "attributes": ["<string>"] }
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pipeline: {
name: '<string>',
description: '<string>',
custom_fields: {attributes: ['<string>']}
}
})
};
fetch('https://api.evoai.app/api/v1/pipelines/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'pipeline' => [
'name' => '<string>',
'description' => '<string>',
'custom_fields' => [
'attributes' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.evoai.app/api/v1/pipelines/{id}"
payload := strings.NewReader("{\n \"pipeline\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"custom_fields\": {\n \"attributes\": [\n \"<string>\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("api_access_token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.evoai.app/api/v1/pipelines/{id}")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pipeline\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"custom_fields\": {\n \"attributes\": [\n \"<string>\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/pipelines/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["api_access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pipeline\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"custom_fields\": {\n \"attributes\": [\n \"<string>\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"name": "BUSSINESS",
"account_id": "37a1e39b-3579-47c2-bbb3-84829deae585",
"created_by_id": "fc8ec60f-904f-4793-878d-e1534bcedee5",
"description": "No conversation in this stage",
"pipeline_type": "sales",
"visibility": "private",
"is_active": true,
"custom_fields": {
"attributes": []
},
"item_count": 0,
"conversations_count": 0,
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-02-05T17:46:13Z",
"stages": [
{
"id": "f8171680-ca2a-4373-8342-c0c18f795e65",
"name": "New Lead",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 1,
"color": "#3B82F6",
"stage_type": 0,
"automation_rules": {
"description": "New interested contacts"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:48:46Z",
"item_count": 0
},
{
"id": "f64f1897-b85f-4d3f-ac81-ad618beb3392",
"name": "Qualification",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 2,
"color": "#F59E0B",
"stage_type": 0,
"automation_rules": {
"description": "Interest and fit verification"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:48:46Z",
"item_count": 0
},
{
"id": "753338e7-0d7c-4027-a9b1-427e35bbfa49",
"name": "Proposal",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 3,
"color": "#8B5CF6",
"stage_type": 0,
"automation_rules": {
"description": "Proposal sent and negotiation"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:48:46Z",
"item_count": 0
},
{
"id": "f6e993ef-1c29-4421-a3c6-33c95530b5a2",
"name": "Closing",
"pipeline_id": "e8a01c36-f4d7-46fe-9883-6f2264cdf9bc",
"position": 4,
"color": "#EC4899",
"stage_type": 0,
"automation_rules": {
"description": "Conclusion and onboarding"
},
"custom_fields": {
"attributes": []
},
"created_at": "2026-01-27T17:48:46Z",
"updated_at": "2026-01-27T17:49:04Z",
"item_count": 0
}
]
},
"meta": {
"timestamp": "2026-02-05T17:46:15Z"
},
"message": "Pipeline updated successfully"
}{
"success": false,
"error": {
"code": "BAD_REQUEST",
"message": "Invalid request data"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Unauthorized"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "Forbidden"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Pipeline not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation error",
"details": {
"name": "Name is required"
}
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal server error occurred"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/pipelines/{id}",
"method": "PATCH"
}
}