Sofar logo
Sofar logo
Api
Delete a monitors relation DELETECollect monitors relations (replaced by POST /v1/role/{roleId}/monitors/query) GETCollect monitors relations POSTCreate or update a monitors relation PUTUpdate an existing monitors relation PUT
Monitors
DELETE
/v1/role/{roleId}/monitors/{monitorsId}

Authorization

accessBearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

roleId*integer
Range0 <= value
monitorsId*|array<>

Update an existing member relation PUT

A user can only execute this action if he is a member of an authorizing role which satisfies one of the following conditions: <ul> <li> The authorizing role has *direct or indirect* userManagement rights for the role to which a member is updated </li> <li> The authorizing role has *indirect* roleManagement rights for the role to which a member is updated </li> </ul>

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.

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.eniris.be/v1/role/0/monitors/0"
{
  "deletedNodeIds": [],
  "deletedRelationIds": []
}
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Missing or misformatted query parameter or body"
}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "Failed to verify token"
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "User does not have sufficient rights"
}

Delete a specified monitors relation. If the deleted monitors relation was the only monitors relation of the connected device with monitorManagement rights, the device and all its associated relations will be deleted as well. To execute this query, the user must be a member of an authorizing role which satisfies both of the following conditions: One of the following role-related conditions is true: The authorizing role has direct or indirect deviceManagement rights for the role from which the monitors relation is deleted The authorizing role has indirect roleManagement rights for the role from which the monitors relation is deleted The authorizing role has monitorManagement rights for the device to which the monitors relation is deleted

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.

Id of the role of the deleted monitors relation

Id of the deleted monitors relation