Stream ManagementUpdate Multistream Stream

Update Multistream Stream

Update information of Restream

curl -X POST "https://api.5centscdn.com/v2/streams/publish/1001" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "server": "us-east-1",
  "type": "push",
  "mode": "rtmp",
  "url": [
    "rtmp://rtmp.5centscdn.com:1935/"
  ],
  "codec": "h264",
  "audiofix": "N"
}'
{
  "result": "success",
  "message": "Stream Updated",
  "stream": "null"
}
POST
/streams/publish/{streamid}
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
serverstring
Required

server.code, should be one of the server code from the GET streams/publish/servers call

typestring
Required

value should be restream or push

modestring

values should be hls, http, rtmp, rtsp, icecast or ffmpeg.

urlarray

URL for this configuration.

codecstring

Values can be h264 or h265. Set source stream Video Codec.

audiofixstring

Values Can be Y or N. Set to Y if audiofix should be enabled. Set to N if audiofix should be disabled.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

streamidstring
Required

Stream ID

Example:
1001

Body

application/json
serverstring
Required

server.code, should be one of the server code from the GET streams/publish/servers call

Example:
us-east-1
typestring
Required

value should be restream or push

Example:
push
modestring

values should be hls, http, rtmp, rtsp, icecast or ffmpeg.

Example:
rtmp
urlarray

URL for this configuration.

codecstring

Values can be h264 or h265. Set source stream Video Codec.

Example:
h264
audiofixstring

Values Can be Y or N. Set to Y if audiofix should be enabled. Set to N if audiofix should be disabled.

Example:
N

Responses

resultstring

Status of the API response.

messagestring

Human-readable message describing the result.

streamstring