create.md

Create

Media API · Live Outputs

PUT https://app.mk.io/api/v1/projects/{project_name}/media/liveEvents/{event_name}/liveOutputs/{output_name}

Creates a Live Output

RBAC Capability Required: ams.liveeventoutput.create

Authentication

Path parameters

Name Type Required Description
project_name string Yes
event_name string Yes
output_name string Yes

Request body

Content type: application/json

Example request

curl -X PUT "https://app.mk.io/api/v1/projects/{project_name}/media/liveEvents/{event_name}/liveOutputs/{output_name}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "properties": {
    "archiveWindowLength": "string",
    "assetName": "string",
    "description": "string",
    "hls": {
      "fragmentsPerTsSegment": 1
    },
    "manifestName": "name",
    "outputSnapTime": 0,
    "rewindWindowLength": "string"
  }
}'

Responses

201 — Live Output created

Example:

{
  "name": "name",
  "properties": {
    "archiveWindowLength": "string",
    "assetName": "string",
    "created": "string",
    "description": "string",
    "hls": {
      "fragmentsPerTsSegment": 1
    },
    "lastModified": "string",
    "manifestName": "name",
    "outputSnapTime": 0,
    "provisioningState": "string",
    "resourceState": "Creating",
    "rewindWindowLength": "string"
  }
}

400 — Bad Request

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

401 — Unauthorized

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

403 — Forbidden

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

404 — Not Found

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

409 — Conflict

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

429 — Too Many Requests

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

500 — Internal Server Error

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}