Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These endpoints allow users to manage their settings in the current network. 

Base URL for this endpointthese endpoints:  https://api.brightsignnetwork.com/2017/01/REST/Self

GET  /

Self/GET

Returns the information associated with the person (the requestor).

Response Body

Returns thePerson Entity

PUT

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.

/Self

GET  /Networks/ 

GET

Returns the networks associated with a person

Response Body

Returns a

Returns a complete list ofNetwork Entity instances associated with a person.

POST

POST  /Networks/ 

Creates a network for the person.

Request Body

TheNetwork 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).

Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
maxLevel3
indent20px

/Self

GET  /Networks/{id:int}/ 

GET

Get

Returns a list of networks associated with a specified id.

Parameters

Parameter

[int] id: 

id int

The unique identifier for a network

______________________________________________________________

Response Body

Returns

the /Self

GET  /Networks/{name}/ 

GET

Get

Returns a list of networks associated with a specified name.

Parameters

Parameter

[string] name: 

name string

The name of a network

______________________________________________________________

Response Body

Returns

the 

the Network Entity

GET  /

Self/

Networks/{id:int}/Settings/ 

GET

Returns the settings associated with a specified network.

Parameters

Parameter

[int] id:  The network identifier

id int

The unique identifier for a network

______________________________________________________________

Response Body

Returns

the PUT

PUT  /Networks/{id:int}/Settings/ 

Update the settings associated with a specified network

Parameters

Parameter

[int] id:  The network identifier

id  int

The network identifier

______________________________________________________________

Request Body

The Network Settings Entity

______________________________________________________________

Response Body

On success this method returns a status code 2XX, on failure it returns a status code of 5XX.

/Self

GET  /Networks/{name}/Settings/ 

GET

Get the settings associated with a specified network.

Parameters

Parameter

[string] name:  The network name

name string

The network name

______________________________________________________________

Response Body

Returns

the PUT

PUT  /Networks/{name}/Settings/ 

Update the settings associated with a specified network

Parameters

Parameter

[string] id: 

id string

The network name

______________________________________________________________

Request Body

The 

The Network Settings Entity

______________________________________________________________

Response Body

On success this method returns a status code 2XX, on failure it returns a status code of 5XX.

/Self

GET  /Users/

GET

 

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 

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.

/Self

GET  /Users/{userid:int}/ 

GET

[int] id:  The

Returns information about a specified user on a network

Parameters

Parameter

id int 

The unique identifier for a user

______________________________________________________________

Response Body

Returns the User Entity

/Self

GET  /Users/{userid:int}/Profile/ 

GET

Returns the user profile settings

Parameters

Parameter

[int] id: 

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

POST  /Users/{userid:int}/Profile/ 

Creates the user profile property

Parameters

Parameter

[int] id: 

id int

The unique identifier for a user

______________________________________________________________

Request Body

[

pair <string, string>

] pair: 

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  /

Self/

Users/{userid:int}/Profile/{key}/ 

GET

Returns the value of a user profile key

Parameters

[int] id: 

id int

The unique identifier for the user

[string] key: The name

key  string

The name of the profile property

______________________________________________________________

Response Body

Returns the value of the requested user profile key 

PUT

PUT  /Users/{userid:int}/Profile/{key}/ 

Sets a property value in a user profile

Parameters

[int] id: 

id int

The unique identifier for the user

[string] key: The name

key string

The name of the profile property

______________________________________________________________

Request Body

[string] value: The

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

DELETE  /Users/{userid:int}/Profile/{key}/ 

Removes a user profile property

Parameters

[int] id: 

id int

The unique identifier for the user

[string] key: The name

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  /

Self/

Users/{userid:int}/Notifications/

GET

 

Returns the user notification settings

Parameters

Parameter

[int] id: 

id int

The unique identifier for the user

______________________________________________________________

Response Body

Returns

the PUT

PUT  /Users/{userid:int}/Notifications/ 

Updates the user notification settings

Parameters

Parameter

[int] id: 

id int

The unique identifier for the user

______________________________________________________________

Request Body

The 

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.

/Self

GET  /Users/{userid:int}/Permissions/

GET

 

Returns permissions for a given user

Parameters

Parameter

[int] id: A

id int

The unique identifier for

a user

the user

______________________________________________________________

Response Body

Returns an array

of Permission Entity entities

of Permission Entity entities

Endpoints:

Table of Contents
maxLevel2
indent20px
excludeEndpoints: