update

View as MarkdownOpen in Claude

Update a stream. Uses PUT for full replacement, so all fields must be provided in the request body.

This method performs a full replacement (PUT), not a partial update (PATCH). Include all fields you want to keep in the request body.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of the stream.

Request

urlstringRequired
RTMP or RTMPS URL. This must be the address of a server accepting incoming RTMP/RTMPS streams.

Response

idstringRequiredformat: "uuid"
Unique identifier for the stream.
urlstring or nullRequired
RTMP or RTMPS URL. This must be the address of a server accepting incoming RTMP/RTMPS streams.
stream_typestring or nullRequired
The type of stream.
widthinteger or nullRequired
The stream's width in pixels.
heightinteger or nullRequired
The stream's height in pixels.
fpsinteger or nullRequired
The stream's frames per second.
created_atdatetimeRequired
Timestamp when the stream was created.
updated_atdatetimeRequired
Timestamp when the stream was last updated.

Response Example

Response
1{
2 "id": "c22d24f6-5a47-4597-9a23-c7d01e696b92",
3 "url": "rtmp://broadcaster",
4 "stream_type": "rtmp",
5 "width": 1920,
6 "height": 1080,
7 "fps": 20,
8 "created_at": "2022-01-01T10:00:00Z",
9 "updated_at": "2022-01-01T11:00:00Z"
10}

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9stream = client.video.streams.update(
10 "stream-id",
11 url="rtmp://new-destination.example.com/key"
12)