Transfer Playback
Transfer playback to a new device and optionally begin playback. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.Request body which must comply to the following JSON Schema:
{
"required" : [ "device_ids" ],
"type" : "object",
"properties" : {
"device_ids" : {
"type" : "array",
"description" : "A JSON array containing the ID of the device on which playback should be started/transferred.<br/>For example:`{device_ids:[\"74ASZWbe4lXaubB36ztrGX\"]}`<br/>_**Note**: Although an array is accepted, only a single device_id is currently supported. Supplying more than one will return `400 Bad Request`_\n",
"items" : {
"type" : "string"
}
},
"play" : {
"type" : "boolean",
"description" : "**true**: ensure playback happens on new device.<br/>**false** or not provided: keep the current playback state.\n"
}
},
"additionalProperties" : true,
"example" : {
"device_ids" : [ "74ASZWbe4lXaubB36ztrGX" ]
}
}Specify how the response should be mapped to the table output. The following formats are available:
Raw Response: Returns the raw response in a single row with the following columns:
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.
To use this node in KNIME, install the extension Spotify Nodes from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!