POST /accounts/{account_id}/images/v1/variants
Specify variants that allow you to resize images for different use cases.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
account_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
id |
String | Yes | |
options |
Object | Yes |
Allows you to define image resizing sizes for different use cases. |
options.height |
Number | Yes |
Maximum height in image pixels. |
options.width |
Number | Yes |
Maximum width in image pixels. |
options.fit |
String | Yes |
The fit property describes how the width and height dimensions should be interpreted. Possible values:
|
options.metadata |
String | Yes |
What EXIF data should be preserved in the output image. Possible values:
|
neverRequireSignedURLs |
Boolean | No |
Indicates whether the variant can access an image without a signature, regardless of image access control. Default value: false |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.