clearGroupCreate method
clearGroupCreate
-> /v1/clear/groups
Create a clear group with the details specified. The UUID and index in the request body are ignored. They will be automatically assigned and returned in the response body.
PARAMETERS
postBody
(required) : This is the data that must be sent with this request.
RESPONSE 200:
The request was processed successfully.
content-type: application/json
schema:
{
"type": "object",
"required": [
"id",
"layers",
"icon",
"tint",
"stop_timeline_announcements",
"stop_timeline_presentation",
"clear_next_presentation"
]
}
RESPONSE 400:
The request was not valid.
content-type: ``
Implementation
Future<Map<String, dynamic>> clearGroupCreate(Map postBody) async {
String url = '/v1/clear/groups';
return await call('post', url, httpAccept: 'application/json');
}