Create Playlist

Go to Product

Create Playlist

Create a playlist for a Spotify user. (The playlist will be empty until you add tracks.)

Options

User Id
The user's [Spotify user ID](/documentation/web-api/#spotify-uris-and-ids).
Body

Request body which must comply to the following JSON Schema:

{
  "required" : [ "name" ],
  "type" : "object",
  "properties" : {
    "name" : {
      "type" : "string",
      "description" : "The name for the new playlist, for example `\"Your Coolest Playlist\"`. This name does not need to be unique; a user may have several playlists with the same name.\n"
    },
    "public" : {
      "type" : "boolean",
      "description" : "Defaults to `true`. If `true` the playlist will be public, if `false` it will be private. To be able to create private playlists, the user must have granted the `playlist-modify-private` [scope](/documentation/general/guides/authorization-guide/#list-of-scopes)\n"
    },
    "collaborative" : {
      "type" : "boolean",
      "description" : "Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/general/guides/authorization-guide/#list-of-scopes)._\n"
    },
    "description" : {
      "type" : "string",
      "description" : "value for playlist description as displayed in Spotify Clients and in the Web API.\n"
    }
  },
  "additionalProperties" : true,
  "example" : {
    "name" : "New Playlist",
    "description" : "New playlist description",
    "public" : false
  }
}
Result Format
Specify how the response should be mapped to the table output. The following formats are available:
  • Structured Table: Returns a parsed table with data split into rows and columns.
    • Collaborative:

      true if the owner allows other users to modify the playlist.

    • Description:

      The playlist description. Only returned for modified, verified playlists, otherwise null.

    • External Urls:
    • Followers:
    • Href: A link to the Web API endpoint providing full details of the playlist.
    • Id: The [Spotify ID](/documentation/web-api/#spotify-uris-and-ids) for the playlist.
    • Images:

      Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order. See Working with Playlists. Note: If returned, the source URL for the image (url) is temporary and will expire in less than a day.

    • Name: The name of the playlist.
    • Owner:
    • Public:

      The playlist's public/private status: true the playlist is public, false the playlist is private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

    • Snapshot Id: The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version
    • Tracks:
    • Type: The object type: "playlist"
    • Uri: The [Spotify URI](/documentation/web-api/#spotify-uris-and-ids) for the playlist.
  • Raw Response: Returns the raw response in a single row with the following columns:
    • body: Response body
    • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.