Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

PUT /v1/control/reboot/ 

Reboots the player.

Request Body

  • crash_report bool: Setting this parameter to true reboots the player and saves a crash-report file to the brightsign-dumps folder. Only use this when directed by BrightSign customer service, which may request the crash report when helping you troubleshoot a player.

  • factory_reset bool: Setting this parameter to true resets the player to factory defaults, erasing all persistent registry settings for networking, security, and other applications.

  • autorun string: Set to “disable” to disable the current autorun script, which is helpful for debugging purposes.

...

Endpoints:

...

Request Example (Simple Reboot)

This reboot has no body.

Code Block
PUT /api/v1/control/reboot HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}

Request Example (Crash Report)

Code Block
PUT /api/v1/control/reboot/ HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}
Accept: application/json
Content-Type: application/json
Content-Length: 36

This is the example request body:

Code Block
languagejson
{
  "crash_report": true
}

Request Example (Factory Reset)

Code Block
PUT /api/v1/control/reboot/ HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}
Accept: application/json
Content-Type: application/json
Content-Length: 39

This is the example request body:

Code Block
languagejson
{
  "factory_reset": true
}

Request Example (Disable Autorun)

Code Block
PUT /api/v1/control/reboot/ HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}
Accept: application/json
Content-Type: application/json
Content-Length: 41

This is the example request body:

Code Block
languagejson
{
  "autorun": "disable"
}

Response Body

The server will return a success or error message. A successful response will almost always cause a reboot which will be indicated in the response.

  • resultobject: The response object

    • successbool: Whether or not the operation was successful

    • rebootbool: Whether or not the player is rebooting

Response Examples

Crash Report

Code Block
languagejson
{
    "data": {
        "result": {
            "success": true,
            "message": "A reboot has been initiated (with crash report)"
        }
    }
}

Factory Reset

Code Block
languagejson
{
    "data": {
        "result": {
            "success": true,
            "message": "A reboot has been initiated (with factory reset)"
        }
    }
}

Disable Autorun

Code Block
languagejson
{
    "data": {
        "result": {
            "success": true,
            "message": "A reboot has been initiated"
        }
    }
}

GET /v1/control/dws-password/ 

Returns information about the current password of the local DWS (but not the password itself) such as whether the password is blank or invalid

Request Example

Code Block
GET /api/v1/control/dws-password/ HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}
Accept: application/json

Response Body

  • success bool: A flag indicating whether the password was successfully read

  • password Password{ }: A Password object that describes the DWS password. The following are possible values:

    • isResultValid bool: A flag indicating whether the DWS password is valid

    • isBlank bool: A flag indicating whether the DWS password is blank (i.e. no password is required)

Response Example

Code Block
languagejson
{
  "data": {
    "result": {
      "success": true,
      "password": {
        "isResultValid": true,
        "isBlank": true
      }
    }
  }
}

PUT /v1/control/dws-password/ 

Resets or changes the DWS password. 

Request Body

  • password string: This is the password value that you want to set. Passing a blank string "" will remove the existing password.

  • previous_password string: This optional parameter is the old password value

Request Example

Code Block
PUT /api/v1/control/dws-password/ HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}
Accept: application/json
Content-Type: application/json
Content-Length: 106

This is the example request body:

Code Block
languagejson
{
  "password": "newpassword",
  "previous_password": "oldpassword"
}

Response Body

  • success bool: A flag indicating whether the password was successfully set

  • reboot bool: A flag indicating whether the player will reboot to set the password

Response Example

Code Block
languagejson
{
    "data": {
        "result": {
            "success": true,
            "reboot": false
        }
    }
}

GET /v1/control/local-dws/ 

Returns whether or not the local DWS is enabled.

Request Example

Code Block
GET /api/v1/control/local-dws/ HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}
Accept: application/json

Response Body

  • success bool: Whether the local DWS is enabled or disabled

  • value bool: When true means that the local DWS is enabled, false is disabled

Response Example

Code Block
languagejson
{
    "data": {
        "result": {
            "success": true,
            "value": true
        }
    }
}

PUT /v1/control/local-dws/ 

Enables or disables the local DWS on the player. 

Request Body

  • enable bool: Whether the local DWS is enabled or not (it is enabled by default)

Request Example

Code Block
PUT /api/v1/control/local-dws/ HTTP/1.1
Host: {{playerIP}}
Authorization: {{DigestAuth}}
Accept: application/json
Content-Type: application/json
Content-Length: 47

This is the example request body:

Code Block
languagejson
{
  "enable": true
}

Response Body

  • success bool: A flag indicating whether the local DWS was successfully enabled or disabled

  • reboot bool: A flag indicating whether the player will reboot to enable/disable the local DWS

Response Example

Code Block
languagejson
{
    "data": {
        "result": {
            "success": true,
            "reboot": true
        }
    }
}