Help Search

Users Update

Update a User

A User can be updated by sending the PUT request to /users/<userId>.json.

PUT /users/<userId>.json

The request body contains the new data to be updated. The request body schema is same as that of Creating a new User with the exception of the email/username field which can not be updated.

A user can update itself also. First name and Last name but not the username and role. An admin can update first name last name and role. No one can update the username.

Possible responses

Code Description
200 OK
The User was created. The response body will contain the newly created user object
400 Bad Request
Some of the data validation failed.
403 Authentication Failure
The user making the request is not authenticated

Last updated

This article was last updated on April 23rd, 2019.

If you are familiar with the high level API concepts and only looking for the endpoint implementation details, there is a repository with the latest OpenAPI 2.0 specifications (compatible with Swagger).

OpenAPI Specs