sdkDeterministic

Create pipeline stage

pipeline.createPipelineStage

Create a custom CRM stage with a name, color and optional order.

Parameters

workspaceId
string
No description.
stage_namerequired
string
No description.
color
string
No description.
stage_order
integer
No description.

Example

TypeScripttypescript
await pipeline.createPipelineStage({
"stage_name": "example"
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"stage": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"stageName": {
"type": "string"
},
"stageOrder": {
"type": "number"
},
"color": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"isDefault": {
"type": "boolean"
}
},
"required": [
"id",
"workspaceId",
"stageName",
"stageOrder",
"color",
"isActive",
"isDefault"
]
}
},
"required": [
"stage"
]
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline