Skip to main content
PUT
/
api
/
v1
/
client_father
/
update
/
{id}
Actualizar un cliente padre existente
curl --request PUT \
  --url https://api.raul.ugps.io/api/v1/client_father/update/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fatherName": "<string>",
  "fantasyName": "<string>",
  "rut": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "factura": true,
  "ordenCompra": true,
  "requiresHes": true,
  "childrenIds": [
    "<string>"
  ]
}
'
{
  "idFather": "<string>",
  "fatherName": {},
  "fantasyName": {},
  "rut": {},
  "email": {},
  "phone": {},
  "factura": {},
  "ordenCompra": {},
  "requiresHes": {},
  "createdAt": {},
  "updatedAt": {},
  "clientsChildrens": [
    {
      "clientId": "<string>",
      "clientName": {},
      "rut": {},
      "typeOfContractId": {},
      "sellerId": {},
      "sellerName": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

id
string
required

ID del cliente padre (UUID)

Body

application/json
fatherName
string

Nombre del cliente padre

fantasyName
string

Nombre de fantasía

rut
string

RUT

email
string

Email

phone
string

Teléfono

factura
boolean

Requiere factura

ordenCompra
boolean

Requiere orden de compra

requiresHes
boolean

Requiere HES

childrenIds
string[]

IDs de clientes hijos a asociar (reemplaza la lista actual)

Response

Cliente padre actualizado exitosamente

idFather
string
required

ID del cliente padre

fatherName
object

Nombre del cliente padre

fantasyName
object

Nombre de fantasía

rut
object

RUT

email
object

Email

phone
object

Teléfono

factura
object

Requiere factura

ordenCompra
object

Requiere orden de compra

requiresHes
object

Requiere HES

createdAt
object

Fecha de creación

updatedAt
object

Fecha de actualización

clientsChildrens
object[]

Lista de clientes hijos