Update person
PUT /api/v1/Person/update
Description
This endpoint is used to update a person.
Tags:
Person
URL:
/api/v{version}/Person/update
ApiKey:
No API key required
Content-Type:
application/json
Request Body:
jsonCopy code{
"Id": "string",
"FirstName": "string",
"MiddleName": "string",
"LastName": "string",
"DateOfBirth": "string",
"Gender": "string",
"Address": "string",
"PhoneNumber": "string",
"EmailAddress": "string"
}
Query Parameters:
None
Response:
Success, returns a confirmation message.
Error Codes:
None
Example:
bashCopy codePUT /api/v1/Person/update
Content-Type: application/json
Accept-Language: fr
{
"Id": "abc123",
"FirstName": "John",
"MiddleName": "Doe",
"LastName": "Doe",
"DateOfBirth": "1980-01-01",
"Gender": "Male",
"Address": "123 Main St, Anytown, USA",
"PhoneNumber": "123-456-7890",
"EmailAddress": "john.doe@example.com"
}
/api/v1/Person/update
Headers
| Content-Type | Value |
|---|---|
| Accept-Language |
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Headers
| Content-Type | Value |
|---|---|
| Accept | text/plain |
Body (raw)
{
"userId": `<uuid>`,
"personId": `<uuid>`,
"firstname": `<string>`,
"middlename": `<string>`,
"lastname": `<string>`,
"identificationNumber": `<string>`,
"mobilenumber": `<string>`,
"phoneCode": `<string>`,
"dateofBirth": `<dateTime>`,
"gender": 1,
"country": `<string>`,
"email": `<string>`
}
Response: 200
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}
Response: 400
{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}
Response: 404
{
"succeeded": `<boolean>`,
"message":`<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": `<string>`
}
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /api/v1/Person/update \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!