Update a user
PUT/users/:userId
Updates a user given a specified userId. This endpoint allows you to update a username or fullName and returns the updated user object.
Request
Path Parameters
userId stringrequired
The Id of the user you want to lookup. Returned from the Create User endpoint. Note: you can also use the Embedded user's username
in this field.
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
- application/json
Body
username string
The unique identifier of the user
fullName string
The name of the user
Responses
- 200
- 401
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
userId string
fullName string
username string
{
"userId": "6323d7c9122ae69742a5d0a2",
"fullName": "Gregg Mojica",
"username": "greggmojica"
}
{
"userId": "6323d7c9122ae69742a5d0a2",
"fullName": "Gregg Mojica",
"username": "greggmojica"
}
401
- application/json
- Schema
- Example (from schema)
- Result
Schema
message string
{
"message": "Unauthorized"
}
{
"message":"Unauthorized"
}
Loading...