Self Endpoints (2017/01)
Â
These endpoints allow users to manage their settings in the current network.Â
Base URL for these endpoints:Â Â https://api.brightsignnetwork.com/2017/01/REST/Self
GETÂ /
Returns the information associated with the person (the requestor).
Response Body
Returns the Person Entity
Â
PUTÂ /
Updates a person's information.
Request Body
The Person Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /Networks/Â
Returns the networks associated with a person
Response Body
Returns a complete list of Network Entity instances associated with a person.
Â
POSTÂ /Networks/Â
Creates a network for the person.
Request Body
The Network 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 network entity (see Network Entity).
Â
GETÂ /Networks/{id:int}/Â
Returns a list of networks associated with a specified id.
Parameter
id
int
The unique identifier for a network
______________________________________________________________
Response Body
Returns the Network Entity
Â
GETÂ /Networks/{name}/Â
Returns a list of networks associated with a specified name.
Parameter
name
string
The name of a network
______________________________________________________________
Response Body
Returns the Network Entity
Â
GETÂ /Networks/{id:int}/Settings/Â
Returns the settings associated with a specified network.
Parameter
id
int
The unique identifier for a network
______________________________________________________________
Response Body
Returns the Network Settings Entity
Â
PUTÂ /Networks/{id:int}/Settings/Â
Update the settings associated with a specified network
Parameter
id
 int
The network identifier
______________________________________________________________
Request Body
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /Networks/{name}/Settings/Â
Get the settings associated with a specified network.
Parameter
name
string
The network name
______________________________________________________________
Response Body
Returns the Network Settings Entity
Â
PUTÂ /Networks/{name}/Settings/Â
Update the settings associated with a specified network
Parameter
id
string
The network name
______________________________________________________________
Request Body
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /Users/Â
Returns all user entities that the customer is associated with over all networks where the person has a user record
Response Body
Returns an array of user entities (see User Entity) if the user is a member of multiple networks, or to a single User Entity if the user is only a member of one network, or nothing if the user is not a member of any network.
Â
GETÂ /Users/{userid:int}/Â
Returns information about a specified user on a network
Parameter
id
intÂ
The unique identifier for a user
______________________________________________________________
Response Body
Returns the User Entity
Â
GETÂ /Users/{userid:int}/Profile/Â
Returns the user profile settings
Parameter
id
int
The unique identifier for a user
______________________________________________________________
Response Body
The return type is object, where property names are profile keys and the profile values are those property values
Â
POSTÂ /Users/{userid:int}/Profile/Â
Creates the user profile property
Parameter
id
int
The unique identifier for a user
______________________________________________________________
Request Body
pair
<string, string>
A key value pair. There should be not more than 100 properties per user, and each property value should be not more than 64KB.Â
______________________________________________________________
Response Body
Returns a 201 status code, the key value pair, and a link to the GET method to retrieve it.Â
Â
GETÂ /Users/{userid:int}/Profile/{key}/Â
Returns the value of a user profile key
Parameters
id
int
The unique identifier for the user
Â
key
 string
The name of the profile property
______________________________________________________________
Response Body
Returns the value of the requested user profile keyÂ
Â
PUTÂ /Users/{userid:int}/Profile/{key}/Â
Sets a property value in a user profile
Parameters
id
int
The unique identifier for the user
Â
key
string
The name of the profile property
______________________________________________________________
Request Body
value
string
The profile property value to update
______________________________________________________________
Response Body
Returns HTTP status code 201 if the property value is defined for first time, or status code 204 if the property already exists and has been updated.
Â
DELETEÂ /Users/{userid:int}/Profile/{key}/Â
Removes a user profile property
Parameters
id
int
The unique identifier for the user
Â
key
string
The name of the profile property
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /Users/{userid:int}/Notifications/Â
Returns the user notification settings
Parameter
id
int
The unique identifier for the user
______________________________________________________________
Response Body
Returns the User Notification Settings Entity
Â
PUTÂ /Users/{userid:int}/Notifications/Â
Updates the user notification settings
Parameter
id
int
The unique identifier for the user
______________________________________________________________
Request Body
The User Notification Settings Entity
______________________________________________________________
Response Body
On success this method returns a status code 2XX, on failure it returns a status code of 5XX.
Â
GETÂ /Users/{userid:int}/Permissions/Â
Returns permissions for a given user
Parameter
id
int
The unique identifier for the user
______________________________________________________________
Response Body
Returns an array of Permission Entity entities