Update a pipeline
Partially updates a pipeline. Only the provided fields are changed — omitted fields remain untouched. To manage stages, use the dedicated stage endpoints.
Authorization
apiKey API key from your nodestash dashboard. Pass as a Bearer token in the Authorization header.
In: header
Path Parameters
Pipeline ID (prefixed with pp_).
^pp_Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://api.nodestash.io/v1/pipelines/pp_8rT4mK9pQsVwXyZaB2cD4" \ -H "Content-Type: application/json" \ -d '{ "name": "Enterprise Sales Pipeline", "description": "Updated pipeline for enterprise deals" }'{
"data": {
"id": "pp_8rT4mK9pQsVwXyZaB2cD4",
"type": "pipeline",
"attributes": {
"id": "pp_8rT4mK9pQsVwXyZaB2cD4",
"name": "Enterprise Sales Pipeline",
"description": "Updated pipeline for enterprise deals",
"is_default": true,
"stages": [
{
"id": "ps_1aB2cD3eF4gH5iJ6kL7m",
"name": "Qualification",
"position": 0,
"type": "open",
"created_at": "2026-02-01T10:00:00Z",
"updated_at": "2026-02-01T10:00:00Z"
},
{
"id": "ps_5dE6fG7hI8jK9lM1nO2p",
"name": "Closed Won",
"position": 1,
"type": "won",
"created_at": "2026-02-01T10:00:00Z",
"updated_at": "2026-02-01T10:00:00Z"
},
{
"id": "ps_6eF7gH8iJ9kL1mN2oP3q",
"name": "Closed Lost",
"position": 2,
"type": "lost",
"created_at": "2026-02-01T10:00:00Z",
"updated_at": "2026-02-01T10:00:00Z"
}
],
"created_at": "2026-02-01T10:00:00Z",
"updated_at": "2026-02-15T09:30:00Z"
}
},
"meta": {
"request_id": "req_3cD4eF5gH6iJ7kL8mN9o"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [
{
"field": "email",
"message": "Invalid email"
}
]
},
"meta": {
"request_id": "req_abc123def456"
}
}{
"error": {
"code": "INVALID_API_KEY",
"message": "Missing or invalid Authorization header"
},
"meta": {
"request_id": "req_abc123def456"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Contact not found"
},
"meta": {
"request_id": "req_abc123def456"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded"
},
"meta": {
"request_id": "req_abc123def456"
}
}List pipelines
Returns a paginated list of pipelines in the authenticated workspace. Each pipeline includes its stages ordered by position.
Update a pipeline stage
Partially updates a stage. Only the provided fields are changed. Cannot change the `type` of the last `won` or `lost` stage in a pipeline — every pipeline must have at least one of each.