Update details
Update user details
update
Intro
You will need to be logged in to Get change link. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.
Request Headers
Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>
Authorization: <BEARER_TOKEN>
Request body
{
"name":"String",
"phone":"String",
"job":"String",
"department":"String",
"organization":"String",
"location":"String",
"timeZone":"String",
"age":"String",
"gender":"String",
"bio": "String"
}
Body Validation
Self explanatory
Request
PATCH
http://localhost:5501/api/v1/auth
Response
{
"status": "String",
"data": "String"
}
Response Validation
- status - request status
- data - user ID
Example
Headers
Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Body
{
"name":"New Doe",
"phone":"07000xxxx",
"job":"CEO techkey",
"department":"IT",
"organization":"TECHKEY CYBERNETICS",
"location":"ngara nairobi",
"timeZone":"utc nairobi",
"age":"90",
"gender":"male",
"bio": "I love react"
}
Response
{
"status": "success",
"data": "629ad74878103d4e4a74e9e6"
}