This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Initiates a transformation on a media item. Returns a job ID that can be used to check the status and retrieve the result of the transformation.
Transforming a media item requires that you are able to read the media item, either via api:mediasets-read or
via a MediaItemReadToken
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:mediasets-transform.
stringThe RID of the media set.
stringThe RID of the media item.
booleanA boolean flag that, when set to true, enables the use of beta features in preview mode.
objectRequest to transform a media item.
unionA transformation to apply to a media item. Each variant specifies the type of transformation and any parameters required for the operation.
objectThe transformation was initiated successfully.
string (enum)The status of a transformation job.
Enum values: PENDING, FAILED, SUCCESSFUL
stringAn identifier for a media item transformation job.
1
2
3
4
5
curl -X POST \
\t-H "Content-type: application/json" \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/mediasets/{mediaSetRid}/items/{mediaItemRid}/transform?preview=true" \
-d '{"transformation":{"type":"image","encoding":{"type":"webp"},"operations":[{"type":"resize","width":800,"height":600}]}}'