---
title: "Set Repeat Mode"
method: PUT
path: "/me/player/repeat"
tags: ["Player"]
---

# Set Repeat Mode

`PUT /me/player/repeat`

Set the repeat mode for the user's playback. Options are repeat-track,
repeat-context, and off.

## Query parameters

- `state` string, required — **track**, **context** or **off**.<br/> **track** will repeat the current track.<br/> **context** will repeat the current context.<br/> **off** will turn repeat off.
- `device_id` string — The id of the device this command is targeting. If not supplied, the user's currently active device is the target.

## Response `204`

Command sent

## Other responses

- `401` — Bad or expired token. This can happen if the user revoked a token or the access token has expired. You should re-authenticate the user.
- `403` — Bad OAuth request (wrong consumer key, bad nonce, expired timestamp...). Unfortunately, re-authenticating the user won't help here.
- `429` — The app has exceeded its rate limits.

---

[API](https://skmtc.net/spotify/apis/sonallux.md) · [All operations](https://skmtc.net/spotify/apis/sonallux/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotify/sonallux/versions/1459b27f2e48/schema)
