Update user data
PUT/UpdateUser
Updates the information of a user, including roles, security groups, and installed apps in the graph database. The update is performed based on the provided data in the request body, specifying changes to the user.
Request
- application/json
Body
required
Add updated information for the particular user node.
data
object
required
Possible values: [``, NewUserRole
]
If you want to create a new role for the user and you have set the toggleButtonValue to create, then please provide the role permission in the form App Name and its corresponding create, read, update, delete permission.
Possible values: [Curran
]
Last name of the user.
newRoles
object
If you want to create a new role for the user then please provide the role permission in the form of App Name and its corresponding create, read, update, delete permission.
Maps
object
Maps app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Maps app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Maps app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Maps app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Maps app, else provide false.
Warranty
object
Warranty app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Warranty app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Warranty app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Warranty app, else provide false.
Provide true to enable the update permission for the Warranty app, else provide false.
Assets
object
Assets app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Assets app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Assets app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Assets app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Assets app, else provide false.
Video
object
Video app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Video app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Video app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Video app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Video app, else provide false.
Manuals
object
Manuals app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Manuals app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Manuals app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Manuals app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Manuals app, else provide false.
Alerts
object
Alerts app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Alerts app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Alerts app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Alerts app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Alerts app, else provide false.
Devices
object
Devices app permissions
Possible values: [true
, false
]
Provide true to enable the read permission for the Devices app, else provide false.
Possible values: [true
, false
]
Provide true to enable the create permission for the Devices app, else provide false.
Possible values: [true
, false
]
Provide true to enable the update permission for the Devices app, else provide false.
Possible values: [true
, false
]
Provide true to enable the delete permission for the Devices app, else provide false.
Possible values: [SUMA
]
Organization name for the user.
Possible values: [US-sadashiv.sangale@industrility.com
]
Old parent user of the current user.
Possible values: [{"ClassA":"18","ClassB":"10","ClassC":"0","DefaultClass":"25"}
]
Discount classes for the user.
fileInfo
object
File information for the user.
Possible values: [https://ucarecdn.com/6bac5b09-7daf-479a-b665-d107039b0eed/
]
url for the user logo, provide any https urls or upload a file to upload care and store the cdnUrl of it.
Please add the id's of the selected security groups for the new user. You must have created the security group before creating user
Possible values: [US-jesase9287@locawin.com
]
User ID.
Possible values: [Sam
]
First name of the user.
Possible values: [``, role created for the new user
]
Description of the new role for the new user. Provide a description for the new role if you are creating the new user and have set the toggleButtonValue to create
Possible values: [select
, create
]
Toggle button value set to select if you are selecting the role from the existing available roles otherwise set it to the create to create new role
Flag indicating whether the user is unaccepted.
Possible values: [Customer
, Manufacture
, Distributor
]
Type of the new user.
Temporary password for the user.
Possible values: [UR-customer
, ``]
If you do have the existing role in the account please enter the id of that role, if you looking to create new role you keep this field empty.
installedAppsData
object
Installed apps data for the new user. Add App name as key and installation value either true or false for install or uninstall app respectively
Possible values: [true
, false
]
set the value either true or false, true to install the app and false to uninstall
Possible values: [true
, false
]
set the value either true or false, true to install the app and false to uninstall
Possible values: [true
, false
]
set the value either true or false, true to install the app and false to uninstall
Possible values: [true
, false
]
set the value either true or false, true to install the app and false to uninstall
Possible values: [true
, false
]
set the value either true or false, true to install the app and false to uninstall
Possible values: [true
, false
]
set the value either true or false, true to install the app and false to uninstall
Possible values: [true
, false
]
set the value either true or false, true to install the app and false to uninstall
Possible values: [jesase9287@locawin.com
]
Email of the user.
Possible values: [US-sadashiv.sangale@industrility.com
]
Parent user of the current user.
Possible values: [US-jesase9287@locawin.com
]
ID of the user to be updated.
previousData
object
required
userNode
object
required
Model representing user information
Possible values: [Sangale
]
User's last name
Possible values: [India
]
User's country
Possible values: [1.0
]
Version of Access app
Possible values: [en_US
, en_ja
]
User's preferred language
Possible values: [2023-12-20T11:18:41.285+00:00
]
User's last update date
Possible values: [installed
, install
]
Support app purchase status information
Possible values: [Pune
]
User's city
Possible values: [Asia/Kolkata
]
User's timezone
Possible values: [1.0
]
Version of Video app
Possible values: [purchased:installed
, purchased:install
]
Access app purchase status information
Possible values: [Manufacturer
]
User's type
Possible values: [1.0
]
Version of the preferred app on login
Possible values: [default
, darkTheme
]
User's preferred theme
Possible values: [+919284155740
]
User's contact number
Possible values: [https://ucarecdn.com/6bac5b09-7daf-479a-b665-d107039b0eed/
]
URL of user's logo
Possible values: [US-newuser@gmail.com
]
User ID
Possible values: [Maharashtra
]
User's state
Possible values: [purchased:installed
, purchased:install
]
Home app purchase status information
Possible values: [2023-02-17T16:39:56.946+00:00
]
User's creation date
Possible values: [Pimple Gurav
]
User's address line 2
Possible values: [{"ClassA":"18","ClassB":"10","ClassC":"0","DefaultClass":"25"}
]
User's discount classes
Possible values: [Bhagat Singh
]
User's address line 1
Possible values: [user
]
User's label
User's security groups
Possible values: [newuser@gmail.com
]
Username for login
Possible values: [dev
]
User's environment
Possible values: [411061
]
User's zip code
Possible values: [Sadashiv
]
User's first name
Possible values: [1.0
]
Version of Support
Possible values: [avatar-male.png
, avatar-male1.png
, avatar-male-2.png
, avatar-male-3.png
, avatar-male-4.png
, avatar-female.png
, avatar-female-2.png
, avatar-female-3.png
, ``]
URL of user's avatar image
Possible values: [Home
]
User's preferred app on login
Possible values: [purchased:installed
, purchased:install
]
Video app purchase status information
Possible values: [Sadashiv Sangale
]
User's full name
Possible values: [active
, inactive
]
User's status
Possible values: [UR-administrator
]
Old role of the user.
Old security groups for the user.
Responses
- 200
- 400
- 401
- 502
- 504
200 response
400 response
401 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
502 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
504 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}