VideoAssets

  Get All Video Assets GET /videoassets/

Description

Request all video assets.

Properties

Title

Get all video assets

URL

/videoassets/

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 video assets with the given path_file. Value MUST end with slash and SHOULD be URL encoded.


Success Response

200 - OK

[
  {
    "id": 1,
    "name": "Video Asset Name",
    "description": "Video asset description",
    "production": 1,
    "status_asset": 6,
    "path_file": "/path/to/video_asset.mov",
    "device": 3,
    "is_archive": false,
    "is_production": true,
    "meta_field_store": {...},
    ...
  },
  ...
]

Sample Call

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

  Get Single Video Asset GET /videoassets/{id}/

Description

Request a single video asset.

Properties

Title

Get single video asset

URL

/videoassets/{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": "Video Asset Name",
  "description": "Video asset description",
  "production": 1,
  "status_asset": 6,
  "path_file": "/path/to/video_asset.mov",
  "device": 3,
  "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/videoassets/1/

  Create Video AssetPOST /videoassets/

Work in progress!

Description

Create a new video asset.

Properties

Title

Create video asset

URL

/videoassets/

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/videoassets/
  -d '{
      }'