Skip to content

Create a saved crop area for an asset

Request

Create a SavedCropArea for the specified Asset.

Security
bearerToken
Path
idstringrequired

The unique ID of the Asset

Bodyapplication/jsonrequired
presetIdstringrequired

The unique ID for a PresetTransformation. It only applies to CropTransformation presets.

cropParametersobjectrequired
previewUristringrequired

The preview of this crop area in Base64

curl -i -X POST \
  'https://api-v2.dash.app/assets/{id}/saved-crop-areas' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "presetId": "string",
    "cropParameters": {
      "x": 200,
      "y": 100,
      "width": 400,
      "height": 300
    },
    "previewUri": "string"
  }'

Responses

Success

Bodyapplication/json
resultobjectrequired
permittedActionsArray of objectsrequired
Response
{ "result": { "id": "string", "presetId": "string", "assetId": "string", "cropParameters": {}, "previewUri": "string" }, "permittedActions": [ {} ] }