lookSetCurrent method

Future<bool> lookSetCurrent(
  1. Map postBody
)
inherited

lookSetCurrent -> /v1/look/current

Sets the details of the currently live audience look. The UUID and index in the request body are ignored and not applied to the specified look. For multiple screens, the screens array is applied in order by index to the array of existing screens in the look. Updates to the screens are done until either the end of the screens update array is reached or the end of the existing screens array is reached. If the current look is not found in the saved looks (because it is modified but not saved), returns the size of the saved looks array for the index.

PARAMETERS

postBody (optional) : This is the data that can be sent with this request.

Example:

{
  "id": {
    "uuid": "42C3FC3-C4B2-44F7-A55D-4CC913BB8A5C",
    "name": "Look",
    "index": 0
  },
  "screens": [
    {
      "video_input": true,
      "media": true,
      "slide": true,
      "announcements": true,
      "props": true,
      "messages": true,
      "presentation": "42C3FC3-C4B2-44F7-A55D-4CC913BB8A5D",
      "mask": "42C3FC3-C4B2-44F7-A55D-4CC913BB8A5E"
    },
    {
      "video_input": true,
      "media": true,
      "slide": true,
      "announcements": true,
      "props": true,
      "messages": true,
      "presentation": "42C3FC3-C4B2-44F7-A55D-4CC913BB8A5D",
      "mask": null
    },
    {
      "video_input": false,
      "media": false,
      "slide": false,
      "announcements": true,
      "props": false,
      "messages": false,
      "presentation": null,
      "mask": null
    }
  ]
}

RESPONSE 204:

The request was processed successfully. There is no response body.

content-type: NONE

RESPONSE 400:

The request was not valid.

content-type: ``

Implementation

Future<bool> lookSetCurrent(Map postBody) async {
  String url = '/v1/look/current';

  return await call('put', url, httpAccept: 'application/json');
}