Roles Endpoints (2017/01)
Â
These endpoints allow users to manage roles on a network.
Base URL for these endpoints:Â Â https://api.brightsignnetwork.com/2017/01/REST/Roles
GETÂ /
Returns a list of roles on a network
Parameters
marker
 string
A value specifying which page to retrieve. This value is useful if the isTruncated
 entry in the response body of the previous GET call indicates that the number of role instances exceeds the pageSize
.
Â
pageSize
 int
The maximum number of role instances that can be contained in the response body
______________________________________________________________
Response Body
Returns a paged list of Role Entity instances on a network. This will return not more than 100 entities along with the information necessary to return any other remaining pages.
Â
POSTÂ /
Creates a role on a network
Request Body
The Role Entity
______________________________________________________________
Response Body
Returns a 201 status code and the new resource created and referenced by the Uri (given by the Location header field) in the response. The response includes the Role Entity.
Â
GETÂ /{id:int}/Â
Returns a list of roles on a network
Parameters
id
 int
A unique identifier for a role instance
______________________________________________________________
Response Body
Returns the Role Entity
Â
PUTÂ /{id:int}/Â
Updates a role on a network
Parameter
id
 int
A unique identifier for a role instance
______________________________________________________________
Request Body
The Role Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
DELETEÂ /{id:int}/Â
Removes a role on a network
Parameter
id
 int
A unique identifier for a role instance
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /{name}/Â
Returns a list of roles on a network
Parameters
name
 string
The name of the role instance
______________________________________________________________
Response Body
Returns the Role Entity
Â
PUTÂ /{name}/Â
Updates a role on a network
Parameter
name
 string
The name of the role instance
______________________________________________________________
Request Body
The Role Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
DELETEÂ /{name}/Â
Removes a role from a network
Parameter
name
 string
The name of the role instance
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /Operations/Â
Returns operational permissions granted to roles for specific business operations
Response Body
Returns the Business Operations Entity
Â
GETÂ /{id:int}/Permissions/Â
Includes object permissions for a given role instance.
Parameter
id
int
A unique identifier for a role instance
______________________________________________________________
Response Body
Returns the Permission Entity
Â
POSTÂ /{id:int}/Permissions/Â
Add permissions for specified roles on a network
Parameter
id
int
A unique identifier for a role instance
______________________________________________________________
Request Body
The Permission Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
DELETEÂ /{id:int}/Permissions/Â
Removes permissions for specified roles on a network
Parameter
id
int
A unique identifier for a role instance
______________________________________________________________
Request Body
The Permission Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /{name}/Permissions/Â
Includes object permissions for a given role instance.
Parameter
name
 string
The name of the role instance
______________________________________________________________
Response Body
Returns the Permission Entity
Â
POSTÂ /{name}/Permissions/Â
Add permissions for specified roles on a network
Parameter
name
 string
The name of the role instance
______________________________________________________________
Request Body
The Permission Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
DELETEÂ /{name}/Permissions/Â
Removes permissions for specified role on a network
Parameter
name
 string
The name of the role instance
______________________________________________________________
Request Body
The Permission Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.