Update user details
PUT /api/v1/users/:userId
Description
Update a user details.
Headers:
- Content-Type: application/json
- Authorization:
Bearer {{bearerToken}}
URL: /api/v1/users/:userId
Path Parameters:
userId(Required): User ID
Response: The response is "OK" with a code of 200.
/api/v1/users/:userId
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Body (raw)
{
"userId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"middleName": "<string>",
"photo": "<string>",
"phone": "<string>",
"dob": "<string>",
"gender": "MALE",
"country": {
"name": "<string>",
"code": "<string>",
"currency": "<string>"
},
"state": {
"name": "<string>",
"code": "<string>"
},
"city": {
"name": "<string>",
"code": "<string>"
},
"address": "<string>",
"foreignerResidentialCountry": {
"name": "<string>",
"code": "<string>",
"currency": "<string>"
},
"foreignerResidentialState": {
"name": "<string>",
"code": "<string>"
},
"foreignerResidentialCity": {
"name": "<string>",
"code": "<string>"
},
"actionBy": "<string>",
"bvn": "<string>",
"nin": "<string>",
"identityType": "<string>",
"identityDoc": "<string>"
}
🔑 Authentication bearer
| Param | value | Type |
|---|---|---|
| token | bearerToken | string |
Response: 200
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /api/v1/users/:userId \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!