Stream InfoUpdate Delayed Stream

Update Delayed Stream

Update informations of a delayed stream

curl -X POST "https://api.5centscdn.com/v2/streams/timeshift/1001" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "timeshift": 11465,
  "protocols": [
    "HLS"
  ]
}'
{
  "result": "success",
  "message": "Stream Updated",
  "stream": {
    "monitoring_id": null,
    "type": "timeshift",
    "id": 70697,
    "serviceid": 103,
    "name": "jgj_ts/hgjh_Testing",
    "codec": "h264",
    "ingests": [
      [],
      null
    ],
    "protocols": [
      [
        "HLS"
      ],
      [
        "HLS"
      ]
    ],
    "parentid": 67836,
    "server": "1",
    "backup": "",
    "dedicatedLTC": "0",
    "hasAdvancedFeatures": "0",
    "monitoring_triggers": null,
    "draft": "0",
    "disabled": "0",
    "created_at": "2026-04-01 11:39:30",
    "updated_at": "2026-05-05 10:19:30",
    "lastseen_at": "2026-04-07 10:56:12",
    "deleted": null,
    "ingestsLock": 0,
    "protocolsLock": 0,
    "status": "Deploying",
    "has": {
      "rtmp": 0,
      "rtsp": 0,
      "hls": 1,
      "dash": 0,
      "rtmpauth": false
    },
    "parts": {
      "pp": "jgj_ts",
      "sn": "hgjh_Testing",
      "full": "jgj_tshgjh_Testing"
    },
    "parent": {
      "id": 67836,
      "name": "jgj/hgjh",
      "codec": "h264",
      "stype": "push",
      "rtmpauth": "N"
    },
    "restream": {},
    "timeshift": {
      "shift": 11465,
      "type": "stream"
    },
    "playbackurls": {
      "scheme": "https",
      "url_prefix": "https://stream-abc12-hls-live.stream.example.com",
      "rtmp": "",
      "rtsp": "",
      "hlsManifest": "playlist.m3u8",
      "dashManifest": "manifest.mpd",
      "hls": "https://hash-hls-live.5centscdn.com",
      "dash": "https://hash-hls-live.5centscdn.com",
      "players": {
        "flowplayer": {
          "baseQ": "",
          "base": "https://cdn.example.com/flowplayer/hls/",
          "hls": "https://cdn.example.com/flowplayer/hls/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
          "rtmp": "",
          "rtsp": ""
        },
        "videojs": {
          "baseQ": "",
          "base": "https://cdn.example.com/videojs/hls/",
          "hls": "https://cdn.example.com/videojs/hls/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
          "rtmp": "",
          "rtsp": ""
        },
        "own": {
          "hashes": {
            "stream-abc12-hls-live.stream.example.com": {
              "hash": "51yu37cg771s7mr0",
              "hls": "https://hash-hls-live.5centscdn.com",
              "base64": "aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4",
              "dash": "https://hash-hls-live.5centscdn.com",
              "base64dash": "aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4"
            }
          },
          "baseQ": "?showcv=true&title=jgj_ts/hgjh_Testing",
          "base": "https://cdn.example.com/player/hls/skin1/51yu37cg771s7mr0/",
          "hls": "https://cdn.example.com/player/hls/skin1/51yu37cg771s7mr0/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=jgj_ts/hgjh_Testing",
          "dash": "https://cdn.example.com/player/dash/skin1/51yu37cg771s7mr0/aHR0cHM6Ly9zdHJlYW0uZXhhbXBsZS5jb20vc2FtcGxlL3N0cmVhbS9wbGF5bGlzdC5tM3U4?showcv=true&title=jgj_ts/hgjh_Testing"
        }
      },
      "tokenized": null
    },
    "platformsCount": 0,
    "ssl_enabled": true,
    "hash": "hgjh_Testing",
    "securetoken": {
      "enabled": "N",
      "policy": "D",
      "keyip": "N",
      "list": "",
      "timeout": 3600,
      "session": "0",
      "ips": "",
      "dirs": null,
      "active": "N"
    },
    "domainlock": {
      "enabled": "N",
      "policy": "Y",
      "list": "example.com,docs.example.com",
      "ips": "",
      "noreferer": "N",
      "active": "N"
    },
    "geoblock": {
      "enabled": "N",
      "policy": "N",
      "list": [
        ""
      ],
      "ips": "",
      "active": "N"
    },
    "ipaccess": {
      "enabled": "N",
      "policy": "N",
      "list": "",
      "ips": "",
      "active": "N"
    },
    "useragent": {
      "enabled": "N",
      "policy": "Y",
      "list": "",
      "ips": "",
      "casesensitive": "N",
      "active": "N",
      "listArr": [
        ""
      ]
    },
    "transcode": {
      "ltc": 0,
      "type": "mixed",
      "enabled": false,
      "isEditable": true
    },
    "platforms": [],
    "messages": {},
    "adInsertion": null
  },
  "warnings": null,
  "errors": null
}
POST
/streams/timeshift/{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
timeshiftinteger

Time shift value in seconds representing the delay offset for the delayed stream.

protocolsarray

List of output protocols. Values include HLS, RTMP, DASH, RTSP.

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
timeshiftinteger

Time shift value in seconds representing the delay offset for the delayed stream.

Example:
11465
protocolsarray

List of output protocols. Values include HLS, RTMP, DASH, RTSP.

Example:
["HLS"]

Responses

resultstring

Status of the API response.

messagestring

Human-readable message describing the result.

streamobject

Stream object containing configuration and status details.

warningsstring

Non-fatal warnings returned with the response.

errorsstring

Errors returned with the response.