Playlists - Update
Update a playlist on your account with the specified parameters. Don't forget to specify PUT as the request method as GET will call the show action rather than update.
Request
Url
https://streamio.com/api/v1/playlists/playlist_id.format
Request Method
PUT
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).
-
order_direction
Specifies if you want the results to be sorted ascending or descending. Possible values are asc or desc.
Response
Code
204
Examples
A simple update
Just remember to PUT and you'll be fine.
curl -u username:password \
-X PUT \
-d "title=My Sweet Lolcat&tags=cute,and,awesome" \
https://streamio.com/api/v1/playlists/4c483ea1bf4b9802c5000029.json