'.. http:put:: /channels/discovered/(string: channelid)/playlists
Create a new empty playlist with a given name and description. The name and description parameters are
mandatory.
**Example request**:
.. sourcecode:: none
curl -X PUT http://localhost:8085/channels/discovered/abcd/playlists
--data "name=My fancy playlist&description=This playlist contains some random movies"
**Example response**:
.. sourcecode:: javascript
"created": True
:statuscode 400: if you are missing the name and/or description parameter
:statuscode 404: if the specified channel does not exist'

def render_PUT(self, request):

    parameters = http.parse_qs(request.content.read(), 1)
    if (('name' not in parameters) or (len(parameters['name']) == 0)):
        request.setResponseCode(http.BAD_REQUEST)
        return json.dumps({'error': 'name    parameter    missing'})
    if (('description' not in parameters) or (len(parameters['description']) == 0)):
        request.setResponseCode(http.BAD_REQUEST)
        return json.dumps({'error': 'description    parameter    missing'})
    channel_info = self.get_channel_from_db(self.cid)
    if (channel_info is None):
        return ChannelsPlaylistsEndpoint.return_404(request)
    channel_community = self.get_community_for_channel_id(channel_info[0])
    if (channel_community is None):
        return BaseChannelsEndpoint.return_404(request, message='the    community    for    the    specific    channel    cannot    be    found')
    channel_community.create_playlist(unicode(parameters['name'][0], 'utf-8'), unicode(parameters['description'][0], 'utf-8'), [])
    return json.dumps({'created': True})
