Playlists - Create
Create a playlist on your account with the specified parameters. Don't forget to specify POST as the request method as GET will call the list action rather than create.
Request
Url
https://streamio.com/api/v1/playlists.format
Request Method
POST
Parameters
-
title
The title of the playlist.
-
tags
The tags you wish to set for the playlist. A playlist without tags is basically useless as it would contain no videos. Multiple tags can be separated by comma.
-
order_by
Which attribute to order by. Valid values are _id (use this for sorting on creation date), updated_at, title or plays (number of times a video has been played). Default is _id.
-
order_direction
Specifies if you want the results to be sorted ascending or descending. Possible values are asc or desc. Default is desc.
Response
Code
201
Body
Examples
A simple create
Provide a title and tags and you're good to go.
curl -u username:password \
-F title="My latest published videos" \
-F tags="published" \
https://streamio.com/api/v1/playlists.json