Pular para o conteúdo

PATCH /v1/deal-goals/{id}

PATCH
/v1/deal-goals/{id}
curl --request PATCH \
--url https://seu-endereco-da-api/v1/deal-goals/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "targetValue": 1 }'

Permissão que a Chave de acesso precisa: Gerenciar metas (goals:manage).

id
required
string
Media typeapplication/json
object
targetValue
required
number
>= 1 <= 2147483647

Example generated

{
"targetValue": 1
}
Media typeapplication/json
object
id
required
string
scope
required
string
Allowed values: general pipeline user user_pipeline channel
pipelineId
required
string
nullable
userId
required
string
nullable
channelId
required
string
nullable
metric
required
string
Allowed values: won_value won_count created_count service_volume conversion first_response
periodStart
required
string
targetValue
required
number

Example

{
"scope": "general",
"metric": "won_value"
}