Update a Pipeline's Stages
curl --request PUT \
--url https://api.monaco.com/v1/pipelines/{pipeline_id}/stages \
--header 'Content-Type: application/json' \
--data '
{
"config_version": "3f2a9c1b7d4e8a60",
"stages": [
{
"display_name": "Security Review",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "security_review",
"description": "<string>",
"allow_automatic_entry": true,
"allow_automatic_exit": true
}
],
"deletions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"remap_to_key": "negotiation"
}
]
}
'import requests
url = "https://api.monaco.com/v1/pipelines/{pipeline_id}/stages"
payload = {
"config_version": "3f2a9c1b7d4e8a60",
"stages": [
{
"display_name": "Security Review",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "security_review",
"description": "<string>",
"allow_automatic_entry": True,
"allow_automatic_exit": True
}
],
"deletions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"remap_to_key": "negotiation"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
config_version: '3f2a9c1b7d4e8a60',
stages: [
{
display_name: 'Security Review',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
key: 'security_review',
description: '<string>',
allow_automatic_entry: true,
allow_automatic_exit: true
}
],
deletions: [{id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', remap_to_key: 'negotiation'}]
})
};
fetch('https://api.monaco.com/v1/pipelines/{pipeline_id}/stages', 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.monaco.com/v1/pipelines/{pipeline_id}/stages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'config_version' => '3f2a9c1b7d4e8a60',
'stages' => [
[
'display_name' => 'Security Review',
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'key' => 'security_review',
'description' => '<string>',
'allow_automatic_entry' => true,
'allow_automatic_exit' => true
]
],
'deletions' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'remap_to_key' => 'negotiation'
]
]
]),
CURLOPT_HTTPHEADER => [
"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://api.monaco.com/v1/pipelines/{pipeline_id}/stages"
payload := strings.NewReader("{\n \"config_version\": \"3f2a9c1b7d4e8a60\",\n \"stages\": [\n {\n \"display_name\": \"Security Review\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"security_review\",\n \"description\": \"<string>\",\n \"allow_automatic_entry\": true,\n \"allow_automatic_exit\": true\n }\n ],\n \"deletions\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"remap_to_key\": \"negotiation\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.monaco.com/v1/pipelines/{pipeline_id}/stages")
.header("Content-Type", "application/json")
.body("{\n \"config_version\": \"3f2a9c1b7d4e8a60\",\n \"stages\": [\n {\n \"display_name\": \"Security Review\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"security_review\",\n \"description\": \"<string>\",\n \"allow_automatic_entry\": true,\n \"allow_automatic_exit\": true\n }\n ],\n \"deletions\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"remap_to_key\": \"negotiation\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/pipelines/{pipeline_id}/stages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"config_version\": \"3f2a9c1b7d4e8a60\",\n \"stages\": [\n {\n \"display_name\": \"Security Review\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"security_review\",\n \"description\": \"<string>\",\n \"allow_automatic_entry\": true,\n \"allow_automatic_exit\": true\n }\n ],\n \"deletions\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"remap_to_key\": \"negotiation\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440020",
"name": "Renewals",
"is_default": false,
"auto_stage_updates_enabled": true,
"auto_create_enabled": false,
"config_version": "3f2a9c1b7d4e8a60",
"stages": [
{
"id": "550e8400-e29b-41d4-a716-446655440021",
"key": "renewal_review",
"display_name": "Renewal Review",
"description": "The customer has started reviewing the renewal terms.",
"stage_group": "opportunity_validation",
"color": "blue",
"allow_automatic_entry": true,
"allow_automatic_exit": true,
"opportunity_count": 3
},
{
"id": "550e8400-e29b-41d4-a716-446655440022",
"key": "closed-won",
"display_name": "Renewed",
"description": "The customer signed the renewal.",
"stage_group": "closed",
"outcome": "won",
"color": "green",
"allow_automatic_entry": true,
"allow_automatic_exit": true,
"opportunity_count": 12
}
]
},
"meta": {
"timestamp": "2026-11-10T12:00:00Z"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found",
"data": {}
}
}Pipelines
Update a Pipeline's Stages
Replaces a pipeline’s stages. Send every stage to keep, in order, in stages, each removed stage in deletions, and the config_version from your last read. A deleted stage’s opportunities move to its remap_to_key stage.
Returns 409 config_version_conflict if the pipeline changed since that read, and 409 stage_in_use if a stage with opportunities would change class or outcome. Requires an admin.
PUT
/
v1
/
pipelines
/
{pipeline_id}
/
stages
Update a Pipeline's Stages
curl --request PUT \
--url https://api.monaco.com/v1/pipelines/{pipeline_id}/stages \
--header 'Content-Type: application/json' \
--data '
{
"config_version": "3f2a9c1b7d4e8a60",
"stages": [
{
"display_name": "Security Review",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "security_review",
"description": "<string>",
"allow_automatic_entry": true,
"allow_automatic_exit": true
}
],
"deletions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"remap_to_key": "negotiation"
}
]
}
'import requests
url = "https://api.monaco.com/v1/pipelines/{pipeline_id}/stages"
payload = {
"config_version": "3f2a9c1b7d4e8a60",
"stages": [
{
"display_name": "Security Review",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "security_review",
"description": "<string>",
"allow_automatic_entry": True,
"allow_automatic_exit": True
}
],
"deletions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"remap_to_key": "negotiation"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
config_version: '3f2a9c1b7d4e8a60',
stages: [
{
display_name: 'Security Review',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
key: 'security_review',
description: '<string>',
allow_automatic_entry: true,
allow_automatic_exit: true
}
],
deletions: [{id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', remap_to_key: 'negotiation'}]
})
};
fetch('https://api.monaco.com/v1/pipelines/{pipeline_id}/stages', 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.monaco.com/v1/pipelines/{pipeline_id}/stages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'config_version' => '3f2a9c1b7d4e8a60',
'stages' => [
[
'display_name' => 'Security Review',
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'key' => 'security_review',
'description' => '<string>',
'allow_automatic_entry' => true,
'allow_automatic_exit' => true
]
],
'deletions' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'remap_to_key' => 'negotiation'
]
]
]),
CURLOPT_HTTPHEADER => [
"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://api.monaco.com/v1/pipelines/{pipeline_id}/stages"
payload := strings.NewReader("{\n \"config_version\": \"3f2a9c1b7d4e8a60\",\n \"stages\": [\n {\n \"display_name\": \"Security Review\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"security_review\",\n \"description\": \"<string>\",\n \"allow_automatic_entry\": true,\n \"allow_automatic_exit\": true\n }\n ],\n \"deletions\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"remap_to_key\": \"negotiation\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.monaco.com/v1/pipelines/{pipeline_id}/stages")
.header("Content-Type", "application/json")
.body("{\n \"config_version\": \"3f2a9c1b7d4e8a60\",\n \"stages\": [\n {\n \"display_name\": \"Security Review\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"security_review\",\n \"description\": \"<string>\",\n \"allow_automatic_entry\": true,\n \"allow_automatic_exit\": true\n }\n ],\n \"deletions\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"remap_to_key\": \"negotiation\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/pipelines/{pipeline_id}/stages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"config_version\": \"3f2a9c1b7d4e8a60\",\n \"stages\": [\n {\n \"display_name\": \"Security Review\",\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"key\": \"security_review\",\n \"description\": \"<string>\",\n \"allow_automatic_entry\": true,\n \"allow_automatic_exit\": true\n }\n ],\n \"deletions\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"remap_to_key\": \"negotiation\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440020",
"name": "Renewals",
"is_default": false,
"auto_stage_updates_enabled": true,
"auto_create_enabled": false,
"config_version": "3f2a9c1b7d4e8a60",
"stages": [
{
"id": "550e8400-e29b-41d4-a716-446655440021",
"key": "renewal_review",
"display_name": "Renewal Review",
"description": "The customer has started reviewing the renewal terms.",
"stage_group": "opportunity_validation",
"color": "blue",
"allow_automatic_entry": true,
"allow_automatic_exit": true,
"opportunity_count": 3
},
{
"id": "550e8400-e29b-41d4-a716-446655440022",
"key": "closed-won",
"display_name": "Renewed",
"description": "The customer signed the renewal.",
"stage_group": "closed",
"outcome": "won",
"color": "green",
"allow_automatic_entry": true,
"allow_automatic_exit": true,
"opportunity_count": 12
}
]
},
"meta": {
"timestamp": "2026-11-10T12:00:00Z"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found",
"data": {}
}
}Body
application/json
The pipeline's complete stage list.
Stages are ordered by stage group, then by their order in stages. Every existing
stage must appear in stages or in deletions.