Skip to main content
PUT
/
api
/
management
/
customers
/
{customer}
Atualizar cliente
curl --request PUT \
  --url https://api.olie.ai/api/management/customers/{customer} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Cliente Atualizado",
  "email": "[email protected]",
  "status": true,
  "tags": {
    "to_add": [],
    "to_rem": []
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.olie.ai/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer
string<uuid>
required

Body

application/json
name
string

Nome do cliente

Maximum string length: 255
company_name
string
Maximum string length: 100
document_type
enum<integer>

1 = CPF, 2 = CNPJ

Available options:
1,
2
customer_type
enum<integer>

1 = Matriz, 2 = Filial

Available options:
1,
2
document
string
Maximum string length: 40
main_activity
string
Maximum string length: 255
email
string<email>
Maximum string length: 254
phone
string
Maximum string length: 30
address
string
Maximum string length: 255
description
string
Maximum string length: 255
status
boolean
parent_id
string<uuid>

ID do cliente matriz (obrigatório se customer_type = 2)

form_answers
any[]
tags
object

Etiquetas do cliente. Envie to_add (etiquetas a adicionar) e to_rem (etiquetas a remover).

Response

Cliente atualizado com sucesso