Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor fix

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

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.

Networks/GET

Returns the networks associated with a person

Response Body

Returns a complete list of Network Entity instances associated with a person.

Networks/POST

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

Endpoints:

Table of Contents
maxLevel2
indent20px
excludeEndpoints:



Networks/{id:int}/GET

Returns a list of networks associated with a specified id.

Parameters

  • [int] id:  The unique identifier for a network

Response Body

Returns the Network Entity


Networks/{name}/GET

Returns a list of networks associated with a specified name.

Parameters

  • [string] name:  The name of a network

Response Body

Returns the Network Entity


Networks/{id:int}/Settings/GET

Returns the settings associated with a specified network.

Parameters

  • [int] id:  The network identifier

Response Body

Returns the Network Settings Entity

Networks/{id:int}/Settings/PUT

Update the settings associated with a specified network

Parameters

  • [int] id:  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.

Networks/{name}/Settings/GET

Get the settings associated with a specified network.

Parameters

  • [string] name:  The network name

Response Body

Returns the Network Settings Entity

Networks/{name}/Settings/PUT

Update the settings associated with a specified network

Parameters

  • [string] id:  The network name

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.

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 User Entity if the user is only a member of one network, or nothing if the user is not a member of any network.

Users/{userid:int}/GET

Returns information about a specified user on a network

Parameters

  • [int] id:  The unique identifier for a user

Response Body

Returns the User Entity

Users/{userid:int}/Profile/GET

Returns the user profile settings

Parameters

  • [int] id:  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

Users/{userid:int}/Profile/POST

Creates the user profile property

Parameters

  • [int] id:  The unique identifier for a user

Request Body

  • [<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. 

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

Returns the value of a user profile key

Parameters

  • [int] id:  The unique identifier for the user
  • [string] key: The name of the profile property

Response Body

Returns the value of the requested user profile key 

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

Sets a property value in a user profile

Parameters

  • [int] id:  The unique identifier for the user
  • [string] key: The name of the profile property

Request Body

  • [string] value: 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.

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

Removes a user profile property

Parameters

  • [int] id:  The unique identifier for the user
  • [string] key: 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.

Users/{userid:int}/Notifications/GET

Returns the user notification settings

Parameters

  • [int] id:  The unique identifier for the user

Response Body

Returns the User Notification Settings Entity

Users/{userid:int}/Notifications/PUT

Updates the user notification settings

Parameters

  • [int] id:  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.

Users/{userid:int}/Permissions/GET

Returns permissions for a given user

Parameters

  • [int] id: A unique identifier for a user

Response Body

Returns an array of Permission Entity entities