POST /v1/pipelines/stages/{stageId}/task-templates
POST
/v1/pipelines/stages/{stageId}/task-templates
const url = 'https://seu-endereco-da-api/v1/pipelines/stages/example/task-templates';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"example","kind":"followup","isRequired":true,"onlyWithoutContact":true,"daysAfterEntry":1,"estimatedMinutes":1}'};
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/stages/example/task-templates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "example", "kind": "followup", "isRequired": true, "onlyWithoutContact": true, "daysAfterEntry": 1, "estimatedMinutes": 1 }'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”stageId
required
string
Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
title
required
string
kind
required
string
isRequired
required
boolean
onlyWithoutContact
boolean
daysAfterEntry
required
number
estimatedMinutes
number
Responses
Seção intitulada “Responses”Media typeapplication/json
object
id
required
string
stageId
required
string
title
required
string
kind
required
string
isRequired
required
boolean
onlyWithoutContact
required
Created only for deals without a contact when they enter the stage
boolean
daysAfterEntry
required
number
estimatedMinutes
required
number
position
required
number
Example generated
{ "id": "example", "stageId": "example", "title": "example", "kind": "example", "isRequired": true, "onlyWithoutContact": true, "daysAfterEntry": 1, "estimatedMinutes": 1, "position": 1}