setRepeatMode

suspend fun setRepeatMode(repeatState: RepeatState, deviceId: String? = null): HttpStatusCode(source)

Set the repeat mode of the user's player

Return

HttpStatusCode.NoContent if the request succeeded, HttpStatusCode.NotFound if the device was not found, HttpStatusCode.Forbidden if the user is non-premium

Parameters

repeatState

The repeat state, represented by the RepeatState enum class

deviceId

The device ID, if not provided, the user's current active device is targeted