Skip to content

Search for preset transformations

Request

Create a new PresetTransformationSearch. This is most commonly used for finding presets that are applicable to a set of assets, so that one can be selected for use to create some AssetDownloads.

Security
bearerToken
Bodyapplication/jsonrequired
fromintegerrequired

The item number to begin the result set from

Default:0
Example:0
pageSizeinteger, [ 0 .. 1000 ]required

The maximum number of items to return in the result set.

Default:100
Example:100
criterionany
sortsArray of objects

Sorts to be applied to the search in order of precedence

curl -i -X POST \
  https://api-v2.dash.app/preset-transformation-searches \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "from": 0,
    "pageSize": 100,
    "criterion": {
      "type": "AND",
      "criteria": [
        {
          "type": "APPLICABLE_FOR_ANY_ASSETS",
          "assetIds": [
            "2b746f61-d36d-4627-a547-936f6f20594b"
          ]
        },
        {
          "type": "NOT",
          "criterion": {
            "type": "HAS_TRANSFORMATION_OF_TYPE",
            "transformationType": "CROP"
          }
        }
      ]
    },
    "sorts": []
  }'

Responses

Success

Bodyapplication/json
resultsArray of objects

The specified page of PresetTransformation resources which match the search criterion

totalResultsinteger

The total number of PresetTransformation resources which match the search criterion

Example:1337
Response
{ "results": [ {}, {} ], "totalResults": 2 }