Create assets for direct upload provider/exhibitor streaming/lobby streaming

Create direct upload ID & direct upload URL for session / exhibitor / lobby. For direct upload session/exhibitor/lobby, first, you need to create direct upload assets on MUX. To do this you need to call this API which will prepare direct upload assets on MUX and will return directUploadId and directUploadUrl in response.

directUploadId is a unique reference to uploaded video, and it can be used to get further details about created assets to check this API (https://developer.accelevents.com/reference/update-upload-id-and-file-name).

directUploadUrl is an endpoint where the uploaded video will be stored and used by MUX. Once assets are prepared using this API in the next step, you need to upload a video (https://docs.mux.com/guides/video/upload-files-directly) to directUploadUrl for streaming.

To call this API you need to send sessionId as path parameters.

For creating direct upload assets for exhibitor/lobby users, need to pass 0 as sessionId in the path parameter in this API.

This API can be used by authenticated users only, and it will require super admin/admin/staff level access.

Here is the description of response attributes, which returns to the form of JSON.

Attribute

Description

directUploadId

Unique identifier for the Direct Upload.

directUploadUrl

The URL to upload the associated source media to.

Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.

Error Code

Error Description

400

The request could not be understood by the server due to malformed syntax.

401

You are not authorized to view the resource.

403

Accessing the resource you were trying to reach is forbidden.

404

The resource you were trying to reach is not found.

4030201

Not Event Host

4044003

Mux live stream can not create upload url.

Language
Authentication
Header
Click Try It! to start a request and see the response here!