/api/output/add

Use this interface to add an output for a channel.

Input/Output editing permissions are required.

Prototype

Protocol HTTP/HTTPS POST
URL ip[:port]/api/output/add
Content-Type Request: Content-Type: application/json
Response: Content-Type: application/json

Request Cookies

Parameter Description
mwcloud-sid A string that is used to identify current logged-in user.
mwcloud-uid Current logged-in username.
Request Body
Parameter Description
name Name
protocol Protocol type, refer to Protocol type
config Output configurations, refer to Different protocol output configurations

Request Example

POST /api/output/add HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: xx
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
    "id": 27874787,
    "name": "srt-listener2",
    "protocol": 2,
    "config": {
      "mode": "listener",
      "bind-port": 18001
    }
}

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code

Response Example

HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
content-length: xx
{
  "result": 0
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""