---
title: "loadLineIn"
method: POST
path: "/groups/{groupId}/playback/lineIn"
tags: ["playback"]
---

# loadLineIn

`POST /groups/{groupId}/playback/lineIn`

Use the loadLineIn command in the playback namespace to change the current group source to the line-in source of a specified player. This can be be any player in the household that supports line-in. See Using Line-In on Sonos on the Sonos Support site for more details about the line-in capabilities of our players.

 You can tell whether a player has line-in capabilities with the LINE_IN value in the capabilities object. See the groups object for details.

 The player will switch away from the line-in source when the hardware detects that the user has physically unplugged the line-in cable.

## Request body

- object
  - `deviceId` string, nullable — (Optional) Represents the line-in source, any player in the household that supports line-in. The default value is the local playerId. This is the same as the player ID returned in the player object. Example: "RINCON_542A1BCC1A1001400"
  - `playOnCompletion` boolean, nullable — (Optional) If true, start playback after loading the line-in source. If false, the player loads the cloud queue, but requires the play command to begin. If not provided, the default value is false.

## Response `200`

See the x-muse-error-codes extension for a list of muse errors that generate this response

- Ok — This object represents an empty (default) success. The platform returns an empty object ({}).

## Other responses

- `400` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `401` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `403` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `404` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `499` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `500` — See the x-muse-error-codes extension for a list of muse errors that generate this response
- `503` — See the x-muse-error-codes extension for a list of muse errors that generate this response

---

[API](https://skmtc.net/sonos/apis/authorization-api.md) · [All operations](https://skmtc.net/sonos/apis/authorization-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sonos/authorization-api/versions/243132628620/schema)
