Get all (or some of) the monitors relations which start from a role of which a user is a member (either directly or indirectly).
accessBearerAuth In the value field below, fill in the access token. It has a 10 minutes validity period. A valid token can be obtained via the /accesstoken endpoint (call), AFTER authorization with refreshBearerAuth and the refresh token.
In: header
application/json
Some filters, each of which must be valid for all returned monitors relations
TypeScript Definitions
Use the request body type in TypeScript.
Some filters, each of which must be valid for all returned monitors relations
application/json
application/json
application/json
curl -X POST "https://example.com/v1/role/0/monitors/query" \ -H "Content-Type: application/json" \ -d '{}'{ "monitors": [ { "id": 0, "roleId": 0, "deviceId": 0, "monitorManagement": true, "reads": [ "string" ], "edits": [ "string" ] } ]}Collect monitors relations (replaced by POST /v1/role/{roleId}/monitors/query) GET
Get the monitors relations which start from roles of which the user is a member and which are in the specified list of role ids. The POST /v1/role/{roleId}/monitors/query is a preferable alternative which can better handle complex filters.
Create or update a monitors relation PUT
Create a monitors relation (or update the existing one) between a role and a device.<br><br> To execute this query, the user must be a member of an authorizing role which satisfies both of the following conditions: <ol> <li> One of the following role-related conditions is true: <ul> <li> The authorizing role has *direct or indirect* deviceManagement rights for the role from which the monitors relation is created (or updated) </li> <li> The authorizing role has *indirect* roleManagement rights for the role from which the monitors relation is created (or updated) </li> </ul> </li> <li> The authorizing role has monitorManagement rights for the device to which the monitors relation is created </li> </ol>
Only return those monitors relations which match each of the specified filters