GET /control/dws-password/
Retrieves 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
GET /rest/v1/control/dws-password/?destinationType=player&destinationName={{deviceSerial}} HTTP/1.1 Host: ws.bsn.cloud Authorization: Bearer {{UserAccessToken}} Accept: application/json, application/vnd.bsn.error+json
Response Body
success
bool: A flag indicating whether the password was successfully readpassword
Password{ }: A Password object that describes the DWS password. The following are possible values:isResultValid
bool: A flag indicating whether the DWS password is validisBlank
bool: A flag indicating whether the DWS password is blank (i.e. no password is required)
PUT /control/dws-password/
Sets a new password for the local DWS (or removes the password requirement)
Request Body Parameters
password
string: The new local DWS password for the player. The absence of this parameter (or a blank string) will remove the password requirement for the DWS.previous_password
string: The previous DWS password. This parameter must be included. This value can be an empty string to indicate that the previous password was blank.
Request Example
PUT /rest/v1/control/dws-password/?destinationType=player&destinationName={{deviceSerial}} HTTP/1.1 Host: ws.bsn.cloud Authorization: Bearer {{UserAccessToken}} Accept: application/json, application/vnd.bsn.error+json Content-Type: application/json Content-Length: 106
This is the example request body:
{ "data": { "password": "newpassword", "previous_password": "oldpassword" } }
Response Body
success
bool: A flag indicating whether the password was successfully setreboot
bool: A flag indicating whether the player will reboot to set the password
GET /control/local-dws/
Retrieves the current state of the local DWS
Request Example
GET /rest/v1/control/local-dws/?destinationType=player&destinationName=27D33C000051 HTTP/1.1 Host: ws.bsn.cloud Authorization: Bearer {{UserAccessToken}} Accept: application/json, application/vnd.bsn.error+json
Response Body
success
bool: A flag indicating whether the local DWS is enabled or disabled
PUT /control/local-dws/
Enables or disables the local DWS
Request Body
enable
bool: A flag indicating whether the local DWS should be enabled or disabled
Request Example
PUT /rest/v1/control/local-dws/?destinationType=player&destinationName={{deviceSerial}} HTTP/1.1 Host: ws.bsn.cloud Authorization: Bearer {{UserAccessToken}} Accept: application/json, application/vnd.bsn.error+json Content-Type: application/json Content-Length: 50
This is the example request body:
{ "data": { "enable": true } }
Response Body
success
bool: A flag indicating whether the local DWS was successfully enabled or disabledreboot
bool: A flag indicating whether the player will reboot to enable/disable the local DWS