ImportLogs
Get All Import Logs GET /importlogs/
Description
Request all import logs.
Properties
Title
Get all import log
URL
/importlogs/
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. |
offset | integer | no | Do not return the first x objects, where x is the amount specified by offset. |
asset_path | string | no | Filter parameter to retrieve only the ImportLog object for an asset with the given path (used when importing an asset through Asset-Import). |
Success Response
200 - OK
[ { "id": 1, "asset_type": "videoasset", "asset_path": "/some/path/to/video/asset.mp4", "status": "File does not exist on device or could not be found", "error": "Cannot access asset essence at '/some/path/to/video/asset.mp4'", "warning": {}, "payload": "{ u'production': u'My Production', u'type': u'video', u'asset': { u'asset_meta': { u'path_file': u'/some/path/to/video/asset.mp4', u'name': u'New video asset' } } }", "asset_config": {}, "asset_import_id": null }, ... ]
Sample Call
curl -X GET http://ml-develop.local/api/importlogs/
Get Single Import Log GET /importlogs/{id}/
Description
Request a single import log.
Properties
Title
Get single import log
URL
/importlogs/{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, "asset_type": "videoasset", "asset_path": "/some/path/to/video/asset.mp4", "status": "File does not exist on device or could not be found", "error": "Cannot access asset essence at '/some/path/to/video/asset.mp4'", "warning": {}, "payload": "{ u'production': u'My Production', u'type': u'video', u'asset': { u'asset_meta': { u'path_file': u'/some/path/to/video/asset.mp4', u'name': u'Video asset name' } } }", "asset_config": {}, "asset_import_id": null }
Error Response
404 - Not Found
{ "errors": [ { "status": "404", "code": "not_found", "detail": "ImportLog object with pk=u'{id}' does not exist.", "title": "Not Found" } ] }
Sample Call
curl -X GET http://ml-develop.local/api/importlogs/1/