# Update destination RTMP ingest
`PUT https://octopus.livepush.io/streams/{stream_id}/destinations/{destination_id}/rtmp`
Replaces a destination's RTMP ingest URL and stream key, keeping its
other settings. Use it to point one custom RTMP destination at a new
platform event before each broadcast.

The change is applied to the stream's live configuration right away,
so a broadcast running on this destination moves to the new ingest.
Change it between broadcasts.

Requires a token with the `streams.destinations.write` scope.
- **Tag:** Destinations
- **Operation ID:** `putStreamsStreamIdDestinationsDestinationIdRtmp`
- **Authentication:** Bearer token required
- **Docs:** https://developers.livepush.io/destinations/update-destination-rtmp-ingest/

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `stream_id` | string | yes | Unique identifier of the live stream |
| `destination_id` | string | yes | Unique identifier of the destination |


### Request body

`application/json` (required)

- `rtmpBase` (string) **required** — Base RTMP ingest URL
- `rtmpKey` (string) **required** — RTMP stream key


```json
{
  "rtmpBase": "rtmp://a.rtmp.youtube.com/live2",
  "rtmpKey": "xxxx-xxxx-xxxx-xxxx"
}
```


### Example request

```bash
curl -X PUT 'https://octopus.livepush.io/streams/<stream_id>/destinations/<destination_id>/rtmp' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "rtmpBase": "rtmp://a.rtmp.youtube.com/live2",
    "rtmpKey": "xxxx-xxxx-xxxx-xxxx"
  }'
```


### Responses


#### 200 — Ingest updated

- `success` (boolean)


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


#### 401 — Unauthorized

