Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (43 loc) · 830 Bytes

File metadata and controls

56 lines (43 loc) · 830 Bytes

playlists/:id/activate Endpoint

The playlists/:id/activate endpoint enables you to activate a playlist as the one you want to play media of.

Endpoint

playlists/:id/activate

Method

PUT

Parameters

id: ID of the playlist you want to activate

{
    "id": -1
}

Possible error messages

Insufficient permissions

{
    "data": [
        "You are not authorized to access this resource."
    ],
    "status": "notAuthorized",
}

id is missing

{
    "data": [
        "id is required"
    ],
    "status": "requestError",
}

Data returned

{
    'data': [{                  // Contains the requested data
        'activated': -1         // ID of the playlist you just activated
    }],
    'meta': {},
    'status': 'ok',
    'time': 'xx.xxxxxxxxxxx'
}