POST
/
media
/
transformations
curl --request POST \
  --url https://api.pxyz.dev/api/v0/media/transformations \
  --header 'Content-Type: application/json' \
  --data '{
  "tenantId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "outputFormat": "auto",
  "outputQuality": 123,
  "outputCompression": 123,
  "outputWidth": 123,
  "outputHeight": 123,
  "outputResizeMode": "minimum",
  "steps": [
    {
      "type": "blur",
      "options": {
        "blurType": "fast",
        "strength": 50.5
      }
    }
  ]
}'
{
  "id": "<string>",
  "tenantId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "outputFormat": "auto",
  "outputQuality": 123,
  "outputCompression": 123,
  "outputWidth": 123,
  "outputHeight": 123,
  "outputResizeMode": "minimum",
  "steps": "<any>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
tenantId
string
required
name
string
required
description
string
outputFormat
enum<string>
required
Available options:
auto,
jpeg,
webp,
avif,
png,
svg,
gif
outputQuality
number
required
outputCompression
number
required
outputWidth
number
required
outputHeight
number
required
outputResizeMode
enum<string>
required
Available options:
minimum,
maximum,
stretch,
crop
steps
object[]
required

Response

200 - application/json
id
string
required
tenantId
string
required
name
string
required
description
string | null
required
outputFormat
enum<string>
required
Available options:
auto,
jpeg,
webp,
avif,
png,
svg,
gif
outputQuality
number
required
outputCompression
number
required
outputWidth
number
required
outputHeight
number
required
outputResizeMode
enum<string>
required
Available options:
minimum,
maximum,
stretch,
crop
steps
any
createdAt
string
required
updatedAt
string
required