Users
Edit a user
Changed on🔑
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}
Request
- Base URLhttps://app.360learning.com
- URLhttps://app.360learning.com/api/v2/users/{userId}
- AuthOAuth 2Client credentialsToken URL: /api/v2/oauth2/token
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"
}Changes
- breaking
added
subschema #4: Mail Change Not Allowed For Free Trialto the response bodyoneOflist for the response status
- breaking