Users
Update a user
Only the explicitly specified fields get updated.
put/api/admin/user-admin/{id}
Path parameters
idinteger required
a user id
Request body
Example request
{
"email": "user@example.com",
"name": "Sam Seawright",
"rootRole": 1
}Response
createUserResponseSchema
Example response
{
"id": 123,
"name": "User",
"email": "user@example.com",
"username": "hunter",
"imageUrl": "https://example.com/242x200.png",
"inviteLink": "http://localhost:4242/invite-link/some-secret",
"loginAttempts": 3,
"rootRole": 1,
"seenAt": "2023-06-30T11:42:00.345Z",
"createdAt": "2023-06-30T11:41:00.123Z",
"accountType": "User",
"scimId": "01HTMEXAMPLESCIMID7SWWGHN6",
"seatType": "Regular",
"companyRole": "Developer",
"activeSessions": 2,
"deletedSessions": 1
}Changes
Changed in 2 of the 7 revisions of this API.14
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
Readerenum value to the/response property for the response statusresponse-property-enum-value-added
- ○
added the new
Readerenum value to the request property/request-property-enum-value-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ●