Pipelines
Update a pipeline
Update the details of a pipeline by ID
POST
/
v4
/
pipelines
/
{id}
Update a pipeline
curl --request POST \
--url https://gentrace.ai/api/v4/pipelines/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "My Awesome Pipeline",
"folderId": "6527747a-ba86-441a-aebd-1ad94460bc89",
"isArchived": false
}
'import requests
url = "https://gentrace.ai/api/v4/pipelines/{id}"
payload = {
"displayName": "My Awesome Pipeline",
"folderId": "6527747a-ba86-441a-aebd-1ad94460bc89",
"isArchived": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
displayName: 'My Awesome Pipeline',
folderId: '6527747a-ba86-441a-aebd-1ad94460bc89',
isArchived: false
})
};
fetch('https://gentrace.ai/api/v4/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://gentrace.ai/api/v4/pipelines/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'displayName' => 'My Awesome Pipeline',
'folderId' => '6527747a-ba86-441a-aebd-1ad94460bc89',
'isArchived' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://gentrace.ai/api/v4/pipelines/{id}"
payload := strings.NewReader("{\n \"displayName\": \"My Awesome Pipeline\",\n \"folderId\": \"6527747a-ba86-441a-aebd-1ad94460bc89\",\n \"isArchived\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://gentrace.ai/api/v4/pipelines/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"My Awesome Pipeline\",\n \"folderId\": \"6527747a-ba86-441a-aebd-1ad94460bc89\",\n \"isArchived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gentrace.ai/api/v4/pipelines/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"My Awesome Pipeline\",\n \"folderId\": \"6527747a-ba86-441a-aebd-1ad94460bc89\",\n \"isArchived\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-04-01T00:00:00.000Z",
"updatedAt": "2025-04-01T00:00:00.000Z",
"slug": "my-awesome-pipeline",
"displayName": "My Awesome Pipeline",
"folderId": "6527747a-ba86-441a-aebd-1ad94460bc89",
"archivedAt": "2025-04-01T00:00:00.000Z",
"goldenDatasetId": "6527747a-ba86-441a-aebd-1ad94460bc89"
}{
"message": "Invalid parameters: 'name' field is required"
}{
"message": "Invalid or expired API key"
}{
"message": "Resource with ID '123e4567-e89b-12d3-a456-426614174000' not found"
}{
"message": "Internal server error occurred while processing the request"
}Authorizations
Body
application/json
Response
Successful response
⌘I
Update a pipeline
curl --request POST \
--url https://gentrace.ai/api/v4/pipelines/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "My Awesome Pipeline",
"folderId": "6527747a-ba86-441a-aebd-1ad94460bc89",
"isArchived": false
}
'import requests
url = "https://gentrace.ai/api/v4/pipelines/{id}"
payload = {
"displayName": "My Awesome Pipeline",
"folderId": "6527747a-ba86-441a-aebd-1ad94460bc89",
"isArchived": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
displayName: 'My Awesome Pipeline',
folderId: '6527747a-ba86-441a-aebd-1ad94460bc89',
isArchived: false
})
};
fetch('https://gentrace.ai/api/v4/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://gentrace.ai/api/v4/pipelines/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'displayName' => 'My Awesome Pipeline',
'folderId' => '6527747a-ba86-441a-aebd-1ad94460bc89',
'isArchived' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://gentrace.ai/api/v4/pipelines/{id}"
payload := strings.NewReader("{\n \"displayName\": \"My Awesome Pipeline\",\n \"folderId\": \"6527747a-ba86-441a-aebd-1ad94460bc89\",\n \"isArchived\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://gentrace.ai/api/v4/pipelines/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"displayName\": \"My Awesome Pipeline\",\n \"folderId\": \"6527747a-ba86-441a-aebd-1ad94460bc89\",\n \"isArchived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gentrace.ai/api/v4/pipelines/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"displayName\": \"My Awesome Pipeline\",\n \"folderId\": \"6527747a-ba86-441a-aebd-1ad94460bc89\",\n \"isArchived\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-04-01T00:00:00.000Z",
"updatedAt": "2025-04-01T00:00:00.000Z",
"slug": "my-awesome-pipeline",
"displayName": "My Awesome Pipeline",
"folderId": "6527747a-ba86-441a-aebd-1ad94460bc89",
"archivedAt": "2025-04-01T00:00:00.000Z",
"goldenDatasetId": "6527747a-ba86-441a-aebd-1ad94460bc89"
}{
"message": "Invalid parameters: 'name' field is required"
}{
"message": "Invalid or expired API key"
}{
"message": "Resource with ID '123e4567-e89b-12d3-a456-426614174000' not found"
}{
"message": "Internal server error occurred while processing the request"
}