For AI agents: markdown of this page — /docs-content-en/entities/deal-categories/update.md documentation index — /llms.txt
Update a pipeline
PATCH /v1/deal-categories/:id
Updates the fields of a sales pipeline by ID.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id |
number | Pipeline ID |
Request body parameters
| Parameter | Type | Description |
|---|---|---|
name |
string | Pipeline name |
sort |
number | Sort order |
Examples
curl — personal key
curl -X PATCH "https://vibecode.bitrix24.com/v1/deal-categories/3" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Corporate sales B2B"}'
curl — OAuth application
curl -X PATCH "https://vibecode.bitrix24.com/v1/deal-categories/3" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Corporate sales B2B"}'
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/deal-categories/3', {
method: 'PATCH',
headers: { 'X-Api-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'Corporate sales B2B' }),
})
const { success, data } = await res.json()
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/deal-categories/3', {
method: 'PATCH',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'Corporate sales B2B' }),
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
data |
object | The full pipeline object after the update |
Response example
{
"success": true,
"data": {
"id": 5,
"createdAt": "2026-06-01T10:00:00.000Z",
"name": "Wholesale sales",
"sort": 200,
"isLocked": false
}
}
Error response example
{
"success": false,
"error": { "code": "ENTITY_NOT_FOUND", "message": "Not found." }
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 404 | ENTITY_NOT_FOUND |
Pipeline not found |
| 403 | SCOPE_DENIED |
The API key lacks the crm scope |
| 401 | TOKEN_MISSING |
No API key provided |
Full list of errors — Errors.
See also
- Get a pipeline — current values
- Field reference — all available fields
- Sales pipelines — entity overview