v1
latestOpenAPI 3.1.02026-08-04164270844.7 KBUsers
Edit a user
🔑
Required OAuth scope: users:write.
Edits specific fields of an existing user. Fields not included in the request payload remain unchanged.
patch/api/v2/users/{userId}
Path parameters
userIdstring ObjectId required
Example:507f1f77bcf86cd799439011
The unique ID of the user.
Headers
360-api-version'v2.0' required
The version of the API.
Request body
Example request
{
"firstName": "John",
"lastName": "Smith",
"phone": "+33123456789",
"job": "Architect",
"organization": "360Learning",
"custom": "Half-time worker",
"toBeDeactivatedAt": "2024-09-10T23:00:00.000Z",
"mail": "john.smith@yopmail.com",
"primaryGroupId": "507f1f77bcf86cd799439011",
"username": "johnsmith",
"profileImageId": "507f1f77bcf86cd799439011"
}Response
Returns the updated user.
Example response
{
"_id": "507f1f77bcf86cd799439011",
"mail": "john.smith@yopmail.com",
"username": "johnsmith",
"firstName": "John",
"lastName": "Smith",
"job": "Engineer",
"organization": "360Learning",
"phone": "+33123456789",
"custom": "Half-time worker",
"primaryGroupId": "507f1f77bcf86cd799439011",
"profileImageId": "507f1f77bcf86cd799439011"
}