All URIs are relative to https://api.mux.com
Method | HTTP request | Description |
---|---|---|
create_asset | POST /video/v1/assets | Create an asset |
create_asset_playback_id | POST /video/v1/assets/{ASSET_ID}/playback-ids | Create a playback ID |
create_asset_track | POST /video/v1/assets/{ASSET_ID}/tracks | Create an asset track |
delete_asset | DELETE /video/v1/assets/{ASSET_ID} | Delete an asset |
delete_asset_playback_id | DELETE /video/v1/assets/{ASSET_ID}/playback-ids/{PLAYBACK_ID} | Delete a playback ID |
delete_asset_track | DELETE /video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID} | Delete an asset track |
generate_asset_track_subtitles | POST /video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID}/generate-subtitles | Generate track subtitles |
get_asset | GET /video/v1/assets/{ASSET_ID} | Retrieve an asset |
get_asset_input_info | GET /video/v1/assets/{ASSET_ID}/input-info | Retrieve asset input info |
get_asset_playback_id | GET /video/v1/assets/{ASSET_ID}/playback-ids/{PLAYBACK_ID} | Retrieve a playback ID |
list_assets | GET /video/v1/assets | List assets |
update_asset | PATCH /video/v1/assets/{ASSET_ID} | Update an asset |
update_asset_master_access | PUT /video/v1/assets/{ASSET_ID}/master-access | Update master access |
update_asset_mp4_support | PUT /video/v1/assets/{ASSET_ID}/mp4-support | Update MP4 support |
AssetResponse create_asset(create_asset_request)
Create an asset
Create a new Mux Video asset.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
create_asset_request = {"input":[{"url":"https://muxed.s3.amazonaws.com/leds.mp4"}],"playback_policy":["public"],"video_quality":"basic"} # CreateAssetRequest |
try:
# Create an asset
api_response = api_instance.create_asset(create_asset_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->create_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_asset_request | CreateAssetRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Asset Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreatePlaybackIDResponse create_asset_playback_id(asset_id, create_playback_id_request)
Create a playback ID
Creates a playback ID that can be used to stream the asset to a viewer.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
create_playback_id_request = {"policy":"public"} # CreatePlaybackIDRequest |
try:
# Create a playback ID
api_response = api_instance.create_asset_playback_id(asset_id, create_playback_id_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->create_asset_playback_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
create_playback_id_request | CreatePlaybackIDRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateTrackResponse create_asset_track(asset_id, create_track_request)
Create an asset track
Adds an asset track (for example, subtitles, or an alternate audio track) to an asset.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
create_track_request = {"url":"https://example.com/myVideo_en.srt","type":"text","text_type":"subtitles","language_code":"en-US","name":"English","closed_captions":true,"passthrough":"English"} # CreateTrackRequest |
try:
# Create an asset track
api_response = api_instance.create_asset_track(asset_id, create_track_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->create_asset_track: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
create_track_request | CreateTrackRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_asset(asset_id)
Delete an asset
Deletes a video asset and all its data.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
try:
# Delete an asset
api_instance.delete_asset(asset_id)
except ApiException as e:
print("Exception when calling AssetsApi->delete_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_asset_playback_id(asset_id, playback_id)
Delete a playback ID
Deletes a playback ID, rendering it nonfunctional for viewing an asset's video content. Please note that deleting the playback ID removes access to the underlying asset; a viewer who started playback before the playback ID was deleted may be able to watch the entire video for a limited duration.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
playback_id = 'playback_id_example' # str | The live stream's playback ID.
try:
# Delete a playback ID
api_instance.delete_asset_playback_id(asset_id, playback_id)
except ApiException as e:
print("Exception when calling AssetsApi->delete_asset_playback_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
playback_id | str | The live stream's playback ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_asset_track(asset_id, track_id)
Delete an asset track
Removes a text track from an asset. Audio and video tracks on assets cannot be removed.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
track_id = 'track_id_example' # str | The track ID.
try:
# Delete an asset track
api_instance.delete_asset_track(asset_id, track_id)
except ApiException as e:
print("Exception when calling AssetsApi->delete_asset_track: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
track_id | str | The track ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GenerateTrackSubtitlesResponse generate_asset_track_subtitles(asset_id, track_id, generate_track_subtitles_request)
Generate track subtitles
Generates subtitles (captions) for a given audio track. This API can be used for up to 7 days after an asset is created.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
track_id = 'track_id_example' # str | The track ID.
generate_track_subtitles_request = {"generated_subtitles":[{"language_code":"en","name":"English (generated)","passthrough":"English (generated)"}]} # GenerateTrackSubtitlesRequest |
try:
# Generate track subtitles
api_response = api_instance.generate_asset_track_subtitles(asset_id, track_id, generate_track_subtitles_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->generate_asset_track_subtitles: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
track_id | str | The track ID. | |
generate_track_subtitles_request | GenerateTrackSubtitlesRequest |
GenerateTrackSubtitlesResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetResponse get_asset(asset_id)
Retrieve an asset
Retrieves the details of an asset that has previously been created. Supply the unique asset ID that was returned from your previous request, and Mux will return the corresponding asset information. The same information is returned when creating an asset.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
try:
# Retrieve an asset
api_response = api_instance.get_asset(asset_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->get_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAssetInputInfoResponse get_asset_input_info(asset_id)
Retrieve asset input info
Returns a list of the input objects that were used to create the asset along with any settings that were applied to each input.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
try:
# Retrieve asset input info
api_response = api_instance.get_asset_input_info(asset_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->get_asset_input_info: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAssetPlaybackIDResponse get_asset_playback_id(asset_id, playback_id)
Retrieve a playback ID
Retrieves information about the specified playback ID.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
playback_id = 'playback_id_example' # str | The live stream's playback ID.
try:
# Retrieve a playback ID
api_response = api_instance.get_asset_playback_id(asset_id, playback_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->get_asset_playback_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
playback_id | str | The live stream's playback ID. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListAssetsResponse list_assets(limit=limit, page=page, live_stream_id=live_stream_id, upload_id=upload_id)
List assets
List all Mux assets.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
limit = 25 # int | Number of items to include in the response (optional) (default to 25)
page = 1 # int | Offset by this many pages, of the size of `limit` (optional) (default to 1)
live_stream_id = 'live_stream_id_example' # str | Filter response to return all the assets for this live stream only (optional)
upload_id = 'upload_id_example' # str | Filter response to return an asset created from this direct upload only (optional)
try:
# List assets
api_response = api_instance.list_assets(limit=limit, page=page, live_stream_id=live_stream_id, upload_id=upload_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->list_assets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | int | Number of items to include in the response | [optional] [default to 25] |
page | int | Offset by this many pages, of the size of `limit` | [optional] [default to 1] |
live_stream_id | str | Filter response to return all the assets for this live stream only | [optional] |
upload_id | str | Filter response to return an asset created from this direct upload only | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetResponse update_asset(asset_id, update_asset_request)
Update an asset
Updates the details of an already-created Asset with the provided Asset ID. This currently supports only the passthrough
field.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
update_asset_request = {"passthrough":"Example"} # UpdateAssetRequest |
try:
# Update an asset
api_response = api_instance.update_asset(asset_id, update_asset_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->update_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
update_asset_request | UpdateAssetRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetResponse update_asset_master_access(asset_id, update_asset_master_access_request)
Update master access
Allows you to add temporary access to the master (highest-quality) version of the asset in MP4 format. A URL will be created that can be used to download the master version for 24 hours. After 24 hours Master Access will revert to "none". This master version is not optimized for web and not meant to be streamed, only downloaded for purposes like archiving or editing the video offline.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
update_asset_master_access_request = {"master_access":"temporary"} # UpdateAssetMasterAccessRequest |
try:
# Update master access
api_response = api_instance.update_asset_master_access(asset_id, update_asset_master_access_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->update_asset_master_access: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
update_asset_master_access_request | UpdateAssetMasterAccessRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AssetResponse update_asset_mp4_support(asset_id, update_asset_mp4_support_request)
Update MP4 support
Allows you to add or remove mp4 support for assets that were created without it. The values supported are capped-1080p
, audio-only
, audio-only,capped-1080p
, standard
(deprecated), and none
. none
means that an asset does not have mp4 support, so submitting a request with mp4_support
set to none
will delete the mp4 assets from the asset in question.
- Basic Authentication (accessToken):
from __future__ import print_function
import time
import mux_python
from mux_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mux.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mux_python.Configuration(
host = "https://api.mux.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: accessToken
configuration = mux_python.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with mux_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mux_python.AssetsApi(api_client)
asset_id = 'asset_id_example' # str | The asset ID.
update_asset_mp4_support_request = {"mp4_support":"capped-1080p"} # UpdateAssetMP4SupportRequest |
try:
# Update MP4 support
api_response = api_instance.update_asset_mp4_support(asset_id, update_asset_mp4_support_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetsApi->update_asset_mp4_support: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The asset ID. | |
update_asset_mp4_support_request | UpdateAssetMP4SupportRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]