AudioAssets

  Get All Audio Assets GET /audioassets/

Description

Request all audio assets.

Properties

Title

Get all audio assets

URL

/audioassets/

Method

GET


Headers

Name

Value

Required

Description

Authorization

Token xxxxx

yes

Authorization token required to communicate with the API.


URL Params

Name

Type

Required

Description

limit

integer

no

Limit the number of objects to return.

offsetintegernoDo not return the first x objects, where x is the amount specified by offset.

path_file

string

no

Filter parameter to only list project assets with the given path_file. Value MUST end with slash and SHOULD be URL encoded.


Success Response

200 - OK

[
  {
    "id": 1,
    "name": "Audio Asset Name",
    "description": "",
    "production": 1,
    "status_asset": 6,
    "path_file": "/path/to/audio_asset.aiff",
    "device": 1,
    "is_archive": false,
    "is_production": true,
    "meta_field_store": {}
  },...
]

Sample Call

curl -X GET http://medialoopster-url/api/audioassets/

  Get Single Audio Asset GET /audioassets/{id}/

Description

Request a single audio asset.

Properties

Title

Get single audio asset

URL

/audioassets/{id}/

Method

GET


Headers

Name

Value

Required

Description

Authorization

Token xxxxx

yes

Authorization token required to communicate with the API.


Success Response

200 - OK

{
  "id": 1,
  "name": "Audio Asset Name",
  "description": "",
  "production": 1,
  "status_asset": 6,
  "path_file": "/path/to/audio_asset.aiff",
  "device": 1,
  "is_archive": false,
  "is_production": true,
  "meta_field_store": {...},
  ...
}

Error Response

404 - Not Found

{
  "errors": [
    {
      "status": "404",
      "code": "not_found",
      "detail": "VideoAsset object with pk=u'{id}' does not exist.",
      "title": "Not Found"
    }
  ]
}

Sample Call

curl -X GET http://medialoopster-url/api/audioassets/1/

  Create Audio AssetPOST /audioassets/

Work in progress!

Description

Create a new audio asset.

Properties

Title

Create audio asset

URL

/audioassets/

Method

POST


Headers

Name

Value

Required

Description

Authorization

Token xxxxx

yes

Authorization token required to communicate with the API.

Content-Type

application/json

no

If the request body is sent as raw data instead of form-data this header needs to be set as well.


Data Params


Success Response

200 - OK

Error Response

400 - Bad Request

422 - Unprocessable Entity


Sample Call

curl -X POST http://medialoopster-url/api/audioassets/ \
  -d '{
      }'