lookCreate method

Future<Map<String, dynamic>> lookCreate(
  1. Map postBody
)
inherited

lookCreate -> /v1/looks

Creates a new audience look with the specified details. The UUID and index are ignored in the request body. They are automatically assigned and returned as part of the response.

PARAMETERS

postBody (required) : This is the data that must 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 200:

The request was processed successfully.

content-type: application/json

schema:

{
  "type": "object",
  "required": [
    "uuid",
    "index",
    "name",
    "screens"
  ],
  "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 400:

The request was not valid.

content-type: ``

Implementation

Future<Map<String, dynamic>> lookCreate(Map postBody) async {
  String url = '/v1/looks';

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