mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
65fd3621dc
- Created 111 MDX documentation files - Added 89 API endpoint pages across 14 categories - Included 11 concept guides and 7 tutorials - Configured Mintlify with Spotify branding (#1DB954) - All pages validated successfully
59 lines
1.0 KiB
Plaintext
59 lines
1.0 KiB
Plaintext
---
|
|
title: "Transfer Playback"
|
|
description: "Transfer playback to a new device"
|
|
api: "PUT https://api.spotify.com/v1/me/player"
|
|
---
|
|
|
|
# Transfer Playback
|
|
|
|
Transfer playback to a new device
|
|
|
|
<Note>
|
|
This endpoint requires user authentication with the following scope(s): `user-modify-playback-state`
|
|
</Note>
|
|
|
|
|
|
## Endpoint
|
|
|
|
```
|
|
PUT https://api.spotify.com/v1/me/player
|
|
```
|
|
|
|
## Request
|
|
|
|
### Headers
|
|
|
|
<ParamField header="Authorization" type="string" required>
|
|
Bearer token for authentication: `Bearer {access_token}`
|
|
</ParamField>
|
|
|
|
## Example request
|
|
|
|
```bash
|
|
curl -X PUT "https://api.spotify.com/v1/me/player" \
|
|
-H "Authorization: Bearer {access_token}"
|
|
```
|
|
|
|
## Response
|
|
|
|
Returns JSON with the requested data.
|
|
|
|
### Example response
|
|
|
|
```json
|
|
{
|
|
// Response data
|
|
}
|
|
```
|
|
|
|
## Related endpoints
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="API Reference" href="/api-reference/overview">
|
|
View all endpoints
|
|
</Card>
|
|
<Card title="Authentication" href="/getting-started/authentication-flows">
|
|
Learn about authentication
|
|
</Card>
|
|
</CardGroup>
|