Skip to content

UpdateUser

Request

Update user by specifying id or email. Either id or email is required. If both are provided then an error is returned. The user must have a token with valid permissions.

Security
AuthorizationHeader
Query
emailstring

Email of the user to update

idstring

Id of the user to be updated

Bodyapplication/jsonrequired
namestring or null
emailstring or null
rolestring or null
old_passwordstring or null
passwordstring or null
localestring or null
curl -i -X PATCH \
  'https://apidoc.authmind.com/_mock/v1/docs/v1/user?email=string&id=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "email": "string",
    "role": "string",
    "old_password": "string",
    "password": "string",
    "locale": "string"
  }'

Responses

OK

Bodyapplication/json
errorsstring
successboolean
Response
{ "success": true }