Pular para o conteúdo

POST /v1/deals/{id}/data-suggestions

POST
/v1/deals/{id}/data-suggestions
curl --request POST \
--url https://seu-endereco-da-api/v1/deals/example/data-suggestions \
--header 'Authorization: Bearer <token>'

Permissão que a Chave de acesso precisa: Criar e mover negócios (deals:manage).

id
required
string
Media typeapplication/json
object
suggestions
required

Blank deal value, expected close date and non-sensitive custom fields of the deal, contact and company the caller may edit, that the conversation answers; nothing is saved

Array<object>
object
fieldId

The custom field (contact, company or deal) the value fills; absent when target is expected_close or value

string
target
required

Value only comes from data-suggestions

string
Allowed values: field expected_close value
value
required

Already valid for the field type: text, number, boolean, one option or a list of options; expected_close is AAAA-MM-DD; value is the deal value in cents

object
quote
required

The words of the conversation that show the value

string
reason

Why the AI was not asked; the list is empty and nothing was charged

string
Allowed values: disabled daily_cap no_credit no_conversation

Example

{
"suggestions": [
{
"target": "field"
}
],
"reason": "disabled"
}

The AI could not answer