{
  "opencollection": "1.0.0",
  "info": {
    "name": "7digital Artists Playlists API",
    "version": "1.2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "oauth_consumer_key",
      "value": "{{oauth_consumer_key}}",
      "placement": "query"
    }
  },
  "items": [
    {
      "info": {
        "name": "Playlists",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "7digital List Playlists",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.7digital.com/1.2/playlists",
            "params": [
              {
                "name": "userId",
                "value": "500123",
                "type": "query",
                "description": "Filter playlists by user."
              },
              {
                "name": "page",
                "value": "1",
                "type": "query",
                "description": "1-based page number."
              },
              {
                "name": "pageSize",
                "value": "20",
                "type": "query",
                "description": "Number of items per page."
              }
            ]
          },
          "docs": "Get a list of the partner's playlists."
        },
        {
          "info": {
            "name": "7digital Create Playlist",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.7digital.com/1.2/playlists",
            "params": [
              {
                "name": "userId",
                "value": "500123",
                "type": "query",
                "description": "User to associate the playlist with."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new playlist tied to your partner consumer key. Can optionally be associated with a user. Initial tracks may be supplied or the playlist can be created empty."
        },
        {
          "info": {
            "name": "7digital Update Playlist Details",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.7digital.com/1.2/playlists/:playlistId",
            "params": [
              {
                "name": "playlistId",
                "value": "playlist-789012",
                "type": "path",
                "description": "7digital playlist id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a playlist's details. Does not affect playlist tracks. Use to, e.g., change visibility from private to public. Descriptions are truncated to 500 characters."
        },
        {
          "info": {
            "name": "7digital Add Tracks To Playlist",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.7digital.com/1.2/playlists/:playlistId/tracks",
            "params": [
              {
                "name": "playlistId",
                "value": "playlist-789012",
                "type": "path",
                "description": "7digital playlist id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add tracks to the playlist. All metadata must be provided in the call. The `source` and `audioUrl` properties are optional and may indicate an alternative source for the physical file."
        }
      ]
    }
  ],
  "bundled": true
}