SetReadOnlyForDownstreamAsync

Sets the read-only state for a downstream device. Returns (Task)

Overview of SetReadOnlyForDownstreamAsync goes here.

Name Description
downstream The downstream device to set the read-only state for
isReadOnly The read-only state to set

Set Read Only For Downstream Async

Example in C#

// Returns: nothing
await client.SetReadOnlyForDownstreamAsync(DownstreamInfo downstream, Boolean isReadOnly);

Example in CURL



           curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/readonly \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d 'true'