Permissions

The 'permissions' API allows viewing and modifying the permissions associated with users in the system. Administrator or super administrator permissions are required.

GET /permissions

The GET /permissions endpoint provides a list of permissions available in the system.

GET /permissions/viewUser

The GET /permissions/viewUser endpoint provides the permissions associated for the specific user.

PUT /permissions/addUserDevice

The PUT /permissions/addUserDevice endpoint adds viewing permissions for a device to a user. It expects the following:

  • 'user' (mandatory): email of the user to whom the viewing permissions are to be assigned.
  • 'deviceId' (optional): identifier of the device.

PUT /permissions/removeUserDevice

The PUT /permissions/removeUserDevice endpoint removes viewing permissions for a device from a user. It expects the following:

  • 'user' (mandatory): email of the user from whom the viewing permissions are to be removed.
  • 'deviceId' (optional): identifier of the device.

PUT /permissions/addUserVertical

The PUT /permissions/addUserVertical endpoint adds viewing permissions for a vertical to a user. It expects the following:

  • 'user' (mandatory): email of the user to whom the viewing permissions are to be assigned.
  • 'verticalId' (optional): identifier of the vertical.

PUT /permissions/removeUserVertical

The PUT /permissions/removeUserVertical endpoint removes viewing permissions for a vertical from a user. It expects the following:

  • 'user' (mandatory): email of the user from whom the viewing permissions are to be removed.
  • 'verticalId' (optional): identifier of the vertical.

DELETE /permissions/removeUser

The DELETE /permissions/removeUser endpoint removes all permissions for a user.