Pular para o conteúdo
Funil

Escrever campos personalizados do negócio

v1.0.0
PUThttps://api.staging.growthaisystem.com/api/v1/opportunities/{id}/custom-fields
  • ExigeAuthorization: Bearer gos_…— Chave de API (gos_…)· escoposopportunities.write

Merge por fieldKey (só as chaves enviadas). Chave desconhecida = 400.

Parâmetros de caminho

Entram no próprio endereço, no lugar das chaves.

  • idstringobrigatório
    • tamanho mín. 1

Corpo da requisição

application/jsonobrigatório
  • valuesobjeto livreobrigatório
    • chave string
    • valor qualquer valor JSON

Respostas

11 respostas documentadas — o código, o que ele significa nesta rota e a forma do corpo.

200Deu certoapplication/json

O negócio com os campos personalizados mesclados — só as chaves enviadas mudam, as demais permanecem.

V1Opportunity

  • idstring
  • titlestring
  • pipelineIdstring
  • stageIdstring
  • contactIdstring
  • statusstring
    • um de"open""won""lost""abandoned"
  • valueCentsinteger
  • currencystring
  • ownerUserIdstring | null
  • temperaturestring
  • tagsstring[]
  • lossReasonstring | null
  • expectedCloseAtstring | null
  • wonAtstring | null
  • wonRecordedAtstring | null
  • lostAtstring | null
  • lostRecordedAtstring | null
  • lostAtStageIdstring | null
  • customFieldsobjeto livre
    • chave string
    • valor qualquer valor JSON
  • createdAtstring
  • updatedAtstring
  • sourcestring | null
    • sourcestring | null
    • mediumstring | null
    • campaignstring | null
    • termstring | null
    • contentstring | null
  • originstring
  • stageChangedAtstring
  • urlstring
  • firstHumanTouchAtstring | nullpode faltar
  • lastHumanTouchAtstring | nullpode faltar
  • humanTouchCountintegerpode faltar

    Quantos toques humanos o contato deste negócio recebeu desde a CRIAÇÃO do negócio (cada mensagem, ligação, e-mail ou nota com actor: "user" em /interactions conta um). 0 = nenhum. Mesma fonte e mesmo recorte de firstHumanTouchAt/lastHumanTouchAt. Vem em GET /opportunities e em GET /opportunities/{id}.

    • mín. 0
  • firstHumanTouchChannelstring | nullpode faltar

    O canal do PRIMEIRO toque humano desde a criação do negócio — o mesmo registro de firstHumanTouchAt, no vocabulário de channel de /interactions (whatsapp, instagram, facebook, call, email, note…). Dois toques no mesmo instante: vale o de menor id de /interactions. null = ainda não houve toque humano.

  • lastActivityAtstring | nullpode faltar