POST api/cliente/update
Atualiza as informações do cliente.
Request Information
URI Parameters
None.
Body Parameters
UpdateClienteBindingModelName | Description | Type | Additional information |
---|---|---|---|
CanalId | integer |
Required |
|
Cpf | string |
Required |
|
Nome | string |
Required |
|
Telefone | string |
Required |
|
DDD | string |
Required |
|
DataNascimento | date |
None. |
|
Sexo | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CanalId": 1, "Cpf": "sample string 2", "Nome": "sample string 3", "Telefone": "sample string 4", "DDD": "sample string 5", "DataNascimento": "2024-11-20T17:22:08.5409219+00:00", "Sexo": 1 }
application/xml, text/xml
Sample:
<UpdateClienteBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models"> <CanalId>1</CanalId> <Cpf>sample string 2</Cpf> <DDD>sample string 5</DDD> <DataNascimento>2024-11-20T17:22:08.5409219+00:00</DataNascimento> <Nome>sample string 3</Nome> <Sexo>1</Sexo> <Telefone>sample string 4</Telefone> </UpdateClienteBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UpdateClienteResultName | Description | Type | Additional information |
---|---|---|---|
Succeeded | boolean |
None. |
|
Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Succeeded": true, "Errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<UpdateClienteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models"> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <Succeeded>true</Succeeded> </UpdateClienteResult>