{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update a CF Images variant. This will purge the cache for all images associated with the variant.","properties":{"path":{"type":"object","properties":{"variant_id":{"$ref":"#/definitions/images_image_variant_identifier"},"account_id":{"$ref":"#/definitions/images_account_identifier"}},"required":["variant_id","account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/images_image_variant_patch_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"images_image_variant_identifier":{"type":"string","maxLength":99,"pattern":"^[a-zA-Z0-9]+$","examples":["hero"]},"images_account_identifier":{"description":"Account identifier tag.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"images_image_variant_patch_request":{"type":"object","properties":{"neverRequireSignedURLs":{"$ref":"#/definitions/images_image_variant_neverRequireSignedURLs"},"options":{"$ref":"#/definitions/images_image_variant_options"}},"required":["options"]},"images_image_variant_neverRequireSignedURLs":{"description":"Indicates whether the variant can access an image without a signature, regardless of image access control.","type":"boolean","default":false,"examples":[true]},"images_image_variant_options":{"description":"Allows you to define image resizing sizes for different use cases.","type":"object","properties":{"fit":{"$ref":"#/definitions/images_image_variant_fit"},"height":{"$ref":"#/definitions/images_image_variant_height"},"metadata":{"$ref":"#/definitions/images_image_variant_schemas_metadata"},"width":{"$ref":"#/definitions/images_image_variant_width"}},"required":["fit","metadata","width","height"]},"images_image_variant_fit":{"description":"The fit property describes how the width and height dimensions should be interpreted.","type":"string","enum":["scale-down","contain","cover","crop","pad"],"examples":["scale-down"]},"images_image_variant_height":{"description":"Maximum height in image pixels.","type":"number","minimum":1,"examples":[768]},"images_image_variant_schemas_metadata":{"description":"What EXIF data should be preserved in the output image.","type":"string","enum":["keep","copyright","none"],"examples":["none"]},"images_image_variant_width":{"description":"Maximum width in image pixels.","type":"number","minimum":1,"examples":[1366]}}},"name":"Update a variant","id":"cloudflare.cloudflare-images-variants-update-a-variant","example":{"path":{"variant_id":"hero","account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"options":{"fit":"scale-down","metadata":"none","width":1366,"height":768}}},"maxRequests":1,"summary":false}}