Person Update
PATCH/v1/api/people/:id
This API endpoint allows the update of existing people. It enables clients to modify person details based on specific criteria provided in the request payload.
Clients can send a PUT or PATCH request to this endpoint with appropriate parameters, including the person ID to be updated and the new details to be applied, such as personal data, address and client data.
The endpoint ensures flexibility by allowing partial updates, enabling clients to modify only the necessary fields without having to resend the entire person details.
Upon successful update, the client application will receive a confirmation response containing the updated person details, including any changes made.
In case of errors or conflicts during the update process, the response structure is designed to provide detailed information on the issue encountered, facilitating efficient error handling and resolution.
Request
Path Parameters
- application/json
Body
Name.
Last name.
Email.
Phone.
CPF.
Passport.
Date of birth.
Country of origin.
Registration source.
Street.
Addresss number.
Zip code.
Address complement.
Neighborhood.
City.
State.
Possible values: [ADULT
, CHILD
, null
]
Classification of the age group (Adult or Child).
Loyalty level.
Loyalty opt-in.
Id.
Default value: true
Wheter the person is enabled or not.
Responses
- 200
UpdatePersonResponse()
- application/json
- Schema
- Example (from schema)
Schema
Name.
Last name.
Email.
Phone.
CPF.
Passport.
Date of birth.
Country of origin.
Registration source.
Street.
Addresss number.
Zip code.
Address complement.
Neighborhood.
City.
State.
Possible values: [ADULT
, CHILD
, null
]
Classification of the age group (Adult or Child).
Loyalty level.
Loyalty opt-in.
Id.
Data de criação.
Default value: true
Wheter the person is enabled or not.
{
"firstName": "string",
"lastName": "string",
"email": "string",
"phone": "string",
"cpf": "string",
"passport": "string",
"dob": "string",
"country": "string",
"registrationSource": "string",
"addressStreetName": "string",
"addressNumber": "string",
"addressZipCode": "string",
"addressAdditionalInformation": "string",
"addressDistrict": "string",
"addressCity": "string",
"addressState": "string",
"loyaltyLevel": "string",
"loyaltyOptIn": true,
"id": "string",
"creationDate": "string",
"enabled": true
}