Update User Information
warning
The user has to be logged in to proceed with this flow.
Make sure to either:
- Send a valid
Authorizationheader with of typeBearer TOKEN_VALUEwhere TOKEN_VALUE is the token returned in the response from Sign up or Sign in flow - In case your app supports cookie, you can enable request cookies as our API Automatically sets a cookie named
session-tokenwhich is forwarded with each request to our api.
In order to update the user information, the below endpoint can be used
curl --request PUT \
--url https://dev-iam.razi.ai/v1/authentication/users/__USERID__ \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "Updated First Name",
"lastName": "Updated Last Name",
"phoneNumber": "+9711111111"
}'
This API call will return a 200 OK status if information is updated