# Toggle direct links for the embed
`POST https://octopus.livepush.io/streams/{stream_id}/embed/use_direct_links_for_embed`
Switches the embed to play from the direct output URL rather than the managed player source.

Requires a token with write access to the stream (`CanWriteStreams`).
- **Tag:** Stream Embed
- **Operation ID:** `postStreamEmbedUseDirectLinksForEmbed`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/stream-embed/toggle-direct-links-for-the-embed/

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `stream_id` | string | yes | Unique identifier of the stream. |


### Request body

`application/json` (required)

- `useDirectOutputURLForEmbed` (boolean) **required**


```json
{
  "useDirectOutputURLForEmbed": true
}
```


### Example request

```bash
curl -X POST 'https://octopus.livepush.io/streams/st_xxxxxxxxxxxxx/embed/use_direct_links_for_embed' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "useDirectOutputURLForEmbed": true
  }'
```


### Responses


#### 200 — Setting applied.

- `success` (boolean)


```json
{
  "success": true
}
```


#### 400 — Response


#### 401 — Response

