Skip to main content
PATCH
/
people
/
{peopleId}
Atualizar contato
curl --request PATCH \
  --url http://localhost:3001/people/{peopleId} \
  --header 'Content-Type: application/json' \
  --header 'X-JuriChat-Api-Key: <api-key>' \
  --data '
{
  "inboxId": "<string>",
  "name": "<string>",
  "imageUrl": "<string>",
  "phoneNumber": "<string>",
  "document": "<string>",
  "description": "<string>",
  "country": "<string>",
  "city": "<string>",
  "email": "<string>",
  "isBlocked": true,
  "tags": [
    "<string>"
  ]
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.jurichat.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-JuriChat-Api-Key
string
header
required

Chave de API do escritório (criada no painel). Envie o valor no header X-JuriChat-Api-Key.

Path Parameters

peopleId
string
required

ID do contato.

Pattern: ^[cC][^\s-]{8,}$

Body

application/json
inboxId
string
required

ID da inbox. Usado para localizar o contato corretamente.

name
string

Novo nome do contato.

imageUrl
string

Nova URL de avatar.

phoneNumber
string

Novo número de telefone.

document
string

Novo documento (CPF, CNPJ etc.).

description
string

Novas anotações sobre o contato.

country
string

Novo país.

city
string

Nova cidade.

email
string

Novo e-mail.

isBlocked
boolean

Altera o status de bloqueio do contato.

tags
string[]

Substitui todas as tags do contato pelos IDs enviados.

Response

Confirmação da operação.

Confirmação da operação.