Version 1.0
Connector Overview: This page documents all 34 actions for the Aviaryconnector v1.0.
Authorization
POST Authorization: /api/v1/auth/sign_in
/api/v1/auth/sign_in
This endpoint allows Aviary users to sign in with an API Key and, upon successful authentication, returns a JSON response containing data about the user's profile and data about each of the organizations that the user is a member of. For more information about generating an Aviary user API Key, see: Creating an API Key.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
The response format expected from the API (e.g. application/json). |
Collections (5)
GET /api/v1/collections
/api/v1/collections
Retrieve a list of all collections.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
POST /api/v1/collections
/api/v1/collections
Create a new collection.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
Options (30)
|
Option Name |
Description |
|---|---|
|
|
string | required |
|
|
string | optional |
|
|
file | optional |
|
|
boolean | optional [true, false] |
|
|
boolean | optional [true, false] |
|
|
file | optional |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
string | optional [Ongoing, Fixed, Duration] |
|
|
string | optional |
|
|
stext | optional [resource, collection] |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
string | optional |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
string | optional [banner_image, featured_resources_slider] |
|
|
string | optional [resources, about] |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
file | optional |
|
|
boolean | optional [true, false] |
|
|
file | optional |
|
|
boolean | optional [true, false] |
PUT /api/v1/collections/{collection_id}
/api/v1/collections/{collection_id}
Update an existing collection identified by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
collection_id |
|
|
The response format expected from the API (e.g. application/json). |
Options (30)
|
Option Name |
Description |
|---|---|
|
|
string | required |
|
|
string | optional |
|
|
file | optional |
|
|
boolean | optional [true, false] |
|
|
boolean | optional [true, false] |
|
|
file | optional |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
string | optional [Ongoing, Fixed, Duration] |
|
|
string | optional |
|
|
stext | optional [resource, collection] |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
string | optional |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
string | optional [banner_image, featured_resources_slider] |
|
|
string | optional [resources, about] |
|
|
boolean | optional [true, false] |
|
|
string | optional |
|
|
boolean | optional [true, false] |
|
|
file | optional |
|
|
boolean | optional [true, false] |
|
|
file | optional |
|
|
boolean | optional [true, false] |
GET /api/v1/collections/{collection_id}/metadata
/api/v1/collections/{collection_id}/metadata
Retrieve the metadata for a specific collection.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
collection_id |
|
|
The response format expected from the API (e.g. application/json). |
GET /api/v1/collections/{collection_id}/resources
/api/v1/collections/{collection_id}/resources
Retrieve the list of resources within a specific collection.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
ID of your organization |
|
|
Starts with 1 |
|
|
Max limit is 100 |
|
|
ID of your collection |
|
|
The response format expected from the API (e.g. application/json). |
Imports (3)
GET /api/v1/imports
/api/v1/imports
Retrieve a list of all imports.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
POST /api/v1/imports
/api/v1/imports
Create a new import job.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
Options (10)
|
Option Name |
Description |
|---|---|
|
|
Identifier of the collection to import into. |
|
|
Numeric code indicating the type of import. |
|
|
Numeric code representing the desired status of the import. |
|
|
Name for a new collection if one should be created. |
|
|
Path or identifier of the resource file to import. |
|
|
Path or identifier of the media file to import. |
|
|
Path or identifier of the transcript file to import. |
|
|
Path or identifier of the index file to import. |
|
|
Path or identifier of a ZIP file containing import data. |
|
|
Title for the import job. |
GET /api/v1/imports/{id}
/api/v1/imports/{id}
Retrieve details of a specific import by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
collection_id |
|
|
The response format expected from the API (e.g. application/json). |
Indexes (4)
POST /api/v1/indexes
/api/v1/indexes
Create a new index.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
Options (9)
|
Option Name |
Description |
|---|---|
|
|
Language code for the index (e.g., 'en'). |
|
|
Title of the index. |
|
|
Whether the index should be publicly accessible. |
|
|
Path or identifier of a file to associate with the index. |
|
|
Media ID |
|
|
Whether the index uses the AES60 XML format. |
|
|
Whether to remove the title from the index content. |
|
|
Description of the index. |
|
|
Array of metadata entries for the index. |
DELETE /api/v1/indexes/{id}
/api/v1/indexes/{id}
Permanently delete a specific index by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
index_id |
|
|
The response format expected from the API (e.g. application/json). |
GET /api/v1/indexes/{id}
/api/v1/indexes/{id}
Retrieve details of a specific index by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
index_id |
|
|
The response format expected from the API (e.g. application/json). |
PUT /api/v1/indexes/{id}
/api/v1/indexes/{id}
Update an existing index identified by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
index_id |
|
|
The response format expected from the API (e.g. application/json). |
Options (5)
|
Option Name |
Description |
|---|---|
|
|
New language code for the index. |
|
|
Whether the index should be publicly accessible. |
|
|
New description for the index. |
|
|
New title for the index. |
|
|
Whether the index uses the AES60 XML format. |
Media (Importing via pre-signed URL) (3)
GET Update the status of media file as complete after successfully uploading to wasabi presigned url.
/api/v1/media_files/{id}/complete
Update the status of media file as complete after successfully uploading to wasabi presigned url.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
media_file_id |
|
|
The response format expected from the API (e.g. application/json). |
POST Upload a new media file for a resource
/api/v1/media_files
Upload a new media file for a resource using a pre-signed URL.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
ID of your organization |
|
|
The response format expected from the API (e.g. application/json). |
Options (17)
|
Option Name |
Description |
|---|---|
|
|
Identifier of the collection resource to attach the media file to. |
|
|
Whether the media file should be accessible. |
|
|
Whether the media is a 360-degree video. |
|
|
Whether the media file can be downloaded by viewers. |
|
|
Whether to enable closed captions for the media. |
|
|
Path or identifier of the media file to upload. |
|
|
URL link to the media file if not uploading directly. |
|
|
Embed code for the media from an external source. |
|
|
Type of embed code (e.g., 'iframe'). |
|
|
Title for the media file. |
|
|
Duration of the media in seconds. |
|
|
Domain that is allowed to embed or access the media. |
|
|
Display name for the media file. |
|
|
Original filename of the media file. |
|
|
Value for a metadata entry with the key 'description'. |
|
|
Vocabulary for a metadata entry with the key 'description'. |
|
|
Value for a metadata entry with the key 'publisher'. |
PUT https://aviary-odin-weareavp.s3.wasabisys.com/collection_resource_files/resource_files/000/000/335/original/1668480870_PS549C3S62004vx_AM_01_01.mp4
https://aviary-odin-weareavp.s3.wasabisys.com/collection_resource_files/resource_files/000/000/335/original/1668480870_PS549C3S62004vx_AM_01_01.mp4
Upload a media file to a pre-signed URL provided by Aviary. Use this action to import media by directly uploading to the storage location.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
The response format expected from the API (e.g. application/json). |
Options (6)
|
Option Name |
Description |
|---|---|
|
|
The signing algorithm used for the AWS Signature Version 4 request. |
|
|
The access key and scope that identify the signer. |
|
|
The date and time used to create the signature, in ISO 8601 format. |
|
|
The time in seconds until the pre-signed URL expires. |
|
|
The list of HTTP headers included in the signature. |
|
|
The cryptographic signature that authenticates the request. |
Media Files (6)
GET /api/v1/media_files/{id}
/api/v1/media_files/{id}
Retrieve the details of a specific media file by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
media_file_id |
|
|
The response format expected from the API (e.g. application/json). |
PUT /api/v1/media_files/{id}
/api/v1/media_files/{id}
Update the properties of a specific media file by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
media_file_id |
|
|
The response format expected from the API (e.g. application/json). |
Options (17)
|
Option Name |
Description |
|---|---|
|
|
Identifier of the collection resource to attach the media file to. |
|
|
Whether the media file should be accessible. |
|
|
Whether the media is a 360-degree video. |
|
|
Whether the media file can be downloaded by viewers. |
|
|
Whether to enable closed captions for the media. |
|
|
Path or identifier of the media file to upload. |
|
|
URL link to the media file if not uploading directly. |
|
|
Embed code for the media from an external source. |
|
|
Type of embed code (e.g., 'iframe'). |
|
|
Title for the media file. |
|
|
Duration of the media in seconds. |
|
|
Domain that is allowed to embed or access the media. |
|
|
Display name for the media file. |
|
|
Original filename of the media file. |
|
|
Value for a metadata entry with the key 'description'. |
|
|
Vocabulary for a metadata entry with the key 'description'. |
|
|
Value for a metadata entry with the key 'publisher'. |
DELETE Delete media file from your organization resource.
/api/v1/media_files/{id}
Delete media file from your organization resource.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
media_file_id |
|
|
The response format expected from the API (e.g. application/json). |
PUT This will update the media thumbnail.
/api/v1/media_files/{id}/thumbnail
This will update the media thumbnail.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
media_file_id |
|
|
The response format expected from the API (e.g. application/json). |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
The base64-encoded image data or URL for the new thumbnail. |
POST Upload a new media file for a resource
/api/v1/media_files/{id}
The Aviary API does not allow media files larger than 100 MB to be directly uploaded. Instead, users must break media files into 100 MB chunks and send each piece describing it and the content range in the POST to the chunked media file upload endpoint (a slightly different workflow from single file upload).
Here we have a example:
import requests
import os
import uuid
from uuid import uuid4
CHUNK_SIZE = 1000000
def read_in_chunks(file_object, CHUNK_SIZE):
while True:
data = file_object.read(CHUNK_SIZE)
if not data:
break
yield data
def upload(file, url):
content_name = str(file)
content_path = os.path.abspath(file)
content_size = os.stat(content_path).st_size
print(content_name, content_path, content_size)
f = open(content_path, “rb”)
index = 0
offset = 0
headers = {}
for chunk in read_in_chunks(f, CHUNK_SIZE):
offset = index + len(chunk)
headers[‘Content-Range’] = ‘bytes %s-%s/%s’ % (index, offset -1, content_size)
headers[‘access-token’] = ‘ErutfY1xgh2aLfT8OG-qcA’
headers[‘client’] = ‘T1JsOijMdkKMPlIjf-fGmQ’
headers[‘uid’] = ‘user@example.com’
headers[‘organization-id’] = ‘5’
index = offset
try:
params = {“collection_resource_id”: “90”,“access”: “true”,“filename”: “sample.mp4”,“is_360”: “false”, “title”: str(uuid4())}
files = {“media_file”: chunk}
r = requests.post(url=url, files=files,params=params, headers=headers)
print(r.json())
print(“r: %s, Content-Range: %s” % (r, headers[‘Content-Range’]))
except Exception as e:
print(e)
upload(‘Video1.mp4’, “https://aviaryplatform.com/api/v1/media_files”)
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
media_file_id |
|
|
The response format expected from the API (e.g. application/json). |
Options (17)
|
Option Name |
Description |
|---|---|
|
|
Identifier of the collection resource to attach the media file to. |
|
|
Whether the media file should be accessible. |
|
|
Whether the media is a 360-degree video. |
|
|
Whether the media file can be downloaded by viewers. |
|
|
Whether to enable closed captions for the media. |
|
|
Path or identifier of the media file to upload. |
|
|
URL link to the media file if not uploading directly. |
|
|
Embed code for the media from an external source. |
|
|
Type of embed code (e.g., 'iframe'). |
|
|
Title for the media file. |
|
|
Duration of the media in seconds. |
|
|
Domain that is allowed to embed or access the media. |
|
|
Display name for the media file. |
|
|
Original filename of the media file. |
|
|
Value for a metadata entry with the key 'description'. |
|
|
Vocabulary for a metadata entry with the key 'description'. |
|
|
Value for a metadata entry with the key 'publisher'. |
DELETE this will delete the media thumbnail and place a default aviary thumbnail.
/api/v1/media_files/{id}/thumbnail
this will delete the media thumbnail and place a default aviary thumbnail.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
media_file_id |
|
|
The response format expected from the API (e.g. application/json). |
Resources (4)
GET Use GET request to fetch resource data using an existing custom unique identifier. Convert the durations value into hours, minutes, and seconds. total_seconds = 11289.30776 Convert to hours, minutes, seconds hours = int(total_seconds / 3600) minutes = int((total_seconds % 3600) / 60) seconds = int(total_seconds % 60) Format as hh:mm:ss time_formatted = f"{hours:02}:{minutes:02}:{seconds:02}"
/api/v1/resources/{custom_unique_identifier}
Use GET request to fetch resource data using an existing custom unique identifier.
Convert the durations value into hours, minutes, and seconds.
total_seconds = 11289.30776
Convert to hours, minutes, seconds
hours = int(total_seconds / 3600)
minutes = int((total_seconds % 3600) / 60)
seconds = int(total_seconds % 60)
Format as hh:mm:ss
time_formatted = f"{hours:02}:{minutes:02}:{seconds:02}"
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
custom unique identifier |
|
|
The response format expected from the API (e.g. application/json). |
GET Use GET request to fetch resource data using an existing resource id. Convert the durations value into hours, minutes, and seconds. total_seconds = 11289.30776 Convert to hours, minutes, seconds hours = int(total_seconds / 3600) minutes = int((total_seconds % 3600) / 60) seconds = int(total_seconds % 60) Format as hh:mm:ss time_formatted = f"{hours:02}:{minutes:02}:{seconds:02}"
/api/v1/resources/{resource_id}
Use GET request to fetch resource data using an existing resource id.
Convert the durations value into hours, minutes, and seconds.
total_seconds = 11289.30776
Convert to hours, minutes, seconds
hours = int(total_seconds / 3600)
minutes = int((total_seconds % 3600) / 60)
seconds = int(total_seconds % 60)
Format as hh:mm:ss
time_formatted = f"{hours:02}:{minutes:02}:{seconds:02}"
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
resource_id |
|
|
The response format expected from the API (e.g. application/json). |
POST Use POST to create a new resource in an existing collection (a collection must be created first).
/api/v1/resources
Use POST to create a new resource in an existing collection (a collection must be created first).
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
Options (29)
|
Option Name |
Description |
|---|---|
|
|
Identifier of the collection to import into. |
|
|
Title for the media file. |
|
|
Specify the access level for the resource. |
|
|
Indicate whether the resource is featured. |
|
|
Provide a custom unique identifier for the resource. |
|
|
Provide the value for the 'Preferred Citation' metadata field. |
|
|
Provide the value for the 'Source Metadata URI' metadata field. |
|
|
Provide the value for the 'Publisher' metadata field. |
|
|
Provide the value for the 'Rights Statement' metadata field. |
|
|
Provide the value for the 'Source' metadata field. |
|
|
Provide the value for the 'Agent' metadata field. |
|
|
Specify the vocabulary for the 'Agent' metadata field. |
|
|
Provide the value for the 'Date' metadata field. |
|
|
Specify the vocabulary for the 'Date' metadata field. |
|
|
Provide the value for the 'Coverage' metadata field. |
|
|
Specify the vocabulary for the 'Coverage' metadata field. |
|
|
Provide the value for the 'Language' metadata field. |
|
|
Specify the vocabulary for the 'Language' metadata field. |
|
|
Provide the value for the 'Description' metadata field. |
|
|
Specify the vocabulary for the 'Description' metadata field. |
|
|
Provide the value for the 'Format' metadata field. |
|
|
Provide the value for the 'Identifier' metadata field. |
|
|
Specify the vocabulary for the 'Identifier' metadata field. |
|
|
Provide the value for the 'Relation' metadata field. |
|
|
Specify the vocabulary for the 'Relation' metadata field. |
|
|
Provide the value for the 'Subject' metadata field. |
|
|
Specify the vocabulary for the 'Subject' metadata field. |
|
|
Provide the value for the 'Keyword' metadata field. |
|
|
Provide the value for the 'Type' metadata field. |
PUT Use PUT request to update an existing resource.
/api/v1/resources/{id}
Use PUT request to update an existing resource.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
id |
|
|
The response format expected from the API (e.g. application/json). |
Options (3)
|
Option Name |
Description |
|---|---|
|
|
Title for the media file. |
|
|
Set the new access level for the resource. |
|
|
Indicate whether the resource should be featured. |
Supplemental Files (4)
POST /api/v1/supplemental_files
/api/v1/supplemental_files
Upload a new supplemental file to the system.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
Options (5)
|
Option Name |
Description |
|---|---|
|
|
Title for the media file. |
|
|
Whether the media file should be accessible. |
|
|
New description for the index. |
|
|
Resource ID |
|
|
Path or identifier of a file to associate with the index. |
DELETE /api/v1/supplemental_files/{id}
/api/v1/supplemental_files/{id}
Permanently delete a supplemental file by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
supplemental_id |
|
|
The response format expected from the API (e.g. application/json). |
GET /api/v1/supplemental_files/{id}
/api/v1/supplemental_files/{id}
Retrieve details of a specific supplemental file by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
supplemental_id |
|
|
The response format expected from the API (e.g. application/json). |
PUT /api/v1/supplemental_files/{id}
/api/v1/supplemental_files/{id}
Update an existing supplemental file by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
supplemental_id |
|
|
The response format expected from the API (e.g. application/json). |
Options (5)
|
Option Name |
Description |
|---|---|
|
|
Title for the media file. |
|
|
Whether the media file should be accessible. |
|
|
New description for the index. |
|
|
Identifier of the collection resource to attach the media file to. |
|
|
Path or identifier of a file to associate with the index. |
Transcripts (4)
POST /api/v1/transcripts
/api/v1/transcripts
Create a new transcript for a resource.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
The response format expected from the API (e.g. application/json). |
Options (9)
|
Option Name |
Description |
|---|---|
|
|
Specify whether the transcript is a caption. |
|
|
New language code for the index. |
|
|
Title for the media file. |
|
|
Whether the index should be publicly accessible. |
|
|
Path or identifier of a file to associate with the index. |
|
|
Media ID |
|
|
Whether to remove the title from the index content. |
|
|
New description for the index. |
|
|
Indicate if the transcript is downloadable. |
GET /api/v1/transcripts/{id}
/api/v1/transcripts/{id}
Retrieve details of a specific transcript by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
transcript_id |
|
|
The response format expected from the API (e.g. application/json). |
DELETE /api/v1/transcripts/{transcript_id}
/api/v1/transcripts/{transcript_id}
Permanently delete a transcript by its ID.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
transcript_id |
|
|
The response format expected from the API (e.g. application/json). |
PUT /api/v1/transcripts/{transcript_id}
/api/v1/transcripts/{transcript_id}
Update an existing transcript with the specified resource file.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
Id of your organization |
|
|
transcript_id |
|
|
The response format expected from the API (e.g. application/json). |
Options (4)
|
Option Name |
Description |
|---|---|
|
|
Specify whether the transcript is a caption. |
|
|
The ID of the resource file to associate with the transcript. |
|
|
New description for the index. |
|
|
Indicate if the transcript is downloadable. |