Productions

  Get All Productions GET /productions/

Description

Request all productions

Properties

Title

Get all production

URL

/productions/

Method

GET


Header

Name

Value

Required

Description

Authorization

Token <xxx>

yes

Authorization token required to communicate with the API.

Accept

application/json; version=1

no

If a specific medialoopster Web API version is required, this header needs to be set.


URL Params

NameTypeRequiredDescription

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.

storage_root

stringnoFilter parameter to only list productions with the given storage_root. Value MUST end with slash and SHOULD be URL encoded.

Success Response

200 - OK

[
  {
    "id": 1,
    "name": "Production Name",
    "codename": "prod",
    "company": "Production Company",
    "storage_root": "/path/to/storage/root/",
    "proxy_root": "/path/to/proxy/root/",
    "proxy_url": "http://medialoopster-proxy-url/",
    "upload_device": {DEVICE_OBJECT},
    "audioasset_device": {DEVICE_OBJECT},
    "imageasset_device": {DEVICE_OBJECT},
    "videoasset_device": {DEVICE_OBJECT}
  },
  ...
]

Sample Call

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

  Get Single Production GET /productions/{id}/

Description

Request a single production.

Properties

Title

Get single production

URL

/productions/{id}/

Method

GET


Header

Name

Value

Required

Description

Authorization

Token <xxx>

yes

Authorization token required to communicate with the API.

Accept

application/json; version=1

no

If a specific medialoopster Web API version is required, this header needs to be set.


Success Response

200 - OK

{
  "id": 1,
  "name": "Production Name",
  "codename": "prod",
  "company": "Production Company",
  "storage_root": "/path/to/storage/root/",
  "proxy_root": "/path/to/proxy/root/",
  "proxy_url": "http://proxy.medialoopster.tv/",
  "upload_device": {DEVICE_OBJECT},
  "audioasset_device": {DEVICE_OBJECT},
  "imageasset_device": {DEVICE_OBJECT},
  "videoasset_device": {DEVICE_OBJECT}
}

Error Response

404 - Not Found

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

Sample Call

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

  Create ProductionPOST /productions/

Work in progress!

Description

Create a new production.

Properties

Title

Create production

URL

/productions/

Method

POST


Headers

Name

Value

Required

Description

Authorization

Token xxxxx

yes

Authorization token required to communicate with the API.

Acceptapplication/json; version=1noIf a specific medialoopster Web API version is required, this header needs to be set.

Content-Type

application/json

application/x-www-form-urlencoded

yes

Depending on how the data is provided, the corresponding Content-Type must be set.


Data Params

Name

Type

Required

Description






Success Response

Error Response


Sample Call

curl -X POST http://medialoopster-url/api/productions/ \
  -H "Content-Type: application/json" \
  -d '{
      }'