POST /v1/pipelines/{pipelineId}/stages
const url = 'https://seu-endereco-da-api/v1/pipelines/example/stages';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","colorKey":"blue","applyTagIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"requiresAssignee":true,"requiresAttachment":true,"requiredAttachmentCategory":"contrato","requiredFieldIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"importantFieldIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"requiresExpectedCloseDate":true,"requiresValue":true,"requiresProducts":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/pipelines/example/stages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "colorKey": "blue", "applyTagIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "requiresAssignee": true, "requiresAttachment": true, "requiredAttachmentCategory": "contrato", "requiredFieldIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "importantFieldIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "requiresExpectedCloseDate": true, "requiresValue": true, "requiresProducts": true }'Permissão que a Chave de acesso precisa: Gerenciar pipelines (pipelines:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
Responses
Seção intitulada “Responses”object
Days in this stage after which an open deal counts as stale; new stages start with the pipeline’s staleDays
The deal only enters with an expected close date
The deal only enters with a value above zero
The deal only enters with at least one product
Custom fields of the contact, the company or the deal that must be filled to enter
Custom fields of the contact, the company or the deal that should be filled on entry: moving in without them is allowed and the move answers what is missing
Task templates marked as required at this stage
Active sequences enrolling on entry to this stage
True when the stage came from the network standard; only the network owner renames or removes it
Example
{ "kind": "open"}