Device users
Get list of devices users
GET
http://localhost:5000/api/device-users/index
This endpoint allows you to get a list of all current device users. In the example below we assume we have two device users; a 1 and a 2:
Headers
Authentication
string
Bearer access_token
Create a new device user
PUT
http://locahost:5000/api/device-users/create
Headers
Authentication
string
Bearer access_token
Request Body
userFirstName
string
First name of the user to create, eg: John
userLastName
string
Last name of the user to create, eg: Doe
Update a device user
POST
http://locahost:5000/api/device-users/update
Headers
Authentication
string
Bearer access_token
Request Body
id
number
Id of the user to update (siteId from the index)
userFirstName
string
First name of the user to update, eg: John
userLastName
string
Last name of the user to update, eg: Doe
Delete a device user
DELETE
http://locahost:5000/api/device-users/delete
id is the siteId from the index response
Path Parameters
id
string
siteId of the device user to delete
Headers
Authentication
string
Bearer access_token
Last updated
Was this helpful?