playlistCreateTopLevel method
playlistCreateTopLevel
-> /v1/playlists
Creates a playlist with the specified details.
PARAMETERS
postBody
(required) : This is the data that must be sent with this request.
Example (playlist):
{
"name": "Sunday Service",
"type": "playlist"
}
Example (group):
{
"name": "Evening Services",
"type": "group"
}
RESPONSE 200:
The request was processed successfully.
content-type: application/json
schema:
{
"oneOf": [
{
"type": "object",
"required": [
"id",
"type",
"playlists"
]
},
{
"type": "object",
"required": [
"id",
"type"
]
}
]
}
RESPONSE 400:
The request was not valid.
content-type: ``
Implementation
Future<Map<String, dynamic>> playlistCreateTopLevel(Map postBody) async {
String url = '/v1/playlists';
return await call('post', url, httpAccept: 'application/json');
}