JSON Rest API - Run A Conversion

Run A Conversion

Runs a Preset conversion on the asset

Request (POST)

URL

/assets/mediadb/services/module/asset/media/convertasset

Parameters

assetsid: Asset's ID
presetid: Preset's ID, you can find preset's ID in the following img

Sample Request

curl -H "Content-Type: application/json" \
  -X POST http://entermedia.org/assets/mediadb/services/module/asset/media/convertasset \
  -b 'entermedia.key=adminxxxx' \
  -d '{
  "assetid": "101",
  "presetid": "imagepreviewfpo"
}'

Response

If succesful it will return 200 OK, and status: "ok"

Sample Response

{
  "response": {
    "status": "ok"
  },
  "results": {
    "path": "/assets/mediadb/services/module/asset/downloads/generated/${asset.sourcePath}/${genname}/${exportname}"
  }
}