Update user info
Update a user’s information
PUT
/appid-{appId}/{tenantId}/recipe/userAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
ridstringcdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonrecipeUserIduserIdemailemailpasswordpasswordResponses
200update user's information
One of:
object
statusstringAllowed:
OKUNKNOWN_USER_ID_ERROREMAIL_ALREADY_EXISTS_ERRORobject
statusstringAllowed:
EMAIL_CHANGE_NOT_ALLOWED_ERRORreasonstring400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT "/appid-{appId}/{tenantId}/recipe/user" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipeUserId": "fa7a0841-b533-4478-95533-0fde890c3483",
"email": "johndoe@gmail.com",
"password": "password123"
}'const response = await fetch("/appid-{appId}/{tenantId}/recipe/user", {
method: "PUT",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"recipeUserId": "fa7a0841-b533-4478-95533-0fde890c3483",
"email": "johndoe@gmail.com",
"password": "password123"
})
});import requests
response = requests.put(
"/appid-{appId}/{tenantId}/recipe/user",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"recipeUserId": "fa7a0841-b533-4478-95533-0fde890c3483",
"email": "johndoe@gmail.com",
"password": "password123"
},
)Response
{
"status": "OK"
}"string""Invalid API key""Not Found""Internal Error"