---
title: "Render and store an image with a specific format in its configured storage destination"
method: PUT
path: "/v1/store/{id}.{format}"
tags: ["Images"]
---

# Render and store an image with a specific format in its configured storage destination

`PUT /v1/store/{id}.{format}`

## Path parameters

- `id` string, required
- `format` 'png' | 'jpg' | 'jpeg' | 'webp' | 'pdf', required

## Query parameters

- `width` integer, nullable
- `height` integer, nullable
- `dpi` integer, nullable
- `aspect_ratio` string, nullable
- `x_origin` string, nullable
- `y_origin` string, nullable
- `x_1` string, nullable
- `x_2` string, nullable
- `y_1` string, nullable
- `y_2` string, nullable
- `crop_width` string, nullable — Use either a number, a percentage like 30.5% or a px measure like 100px.
- `crop_height` string, nullable

## Response `200`

OK

- StoreImageResult
  - `outcome` 'complete' | 'partial' | 'failed', required
  - `baseResult` StoreImageObjectResult, required
    - `status` 'stored' | 'already_stored' | 'failed' | 'not_attempted', required
    - `target` 'hcti_storage' | 'storage_destination', required
    - `bucket` string, nullable
    - `key` string, nullable
  - `transformationResult` StoreImageObjectResult
    - `status` 'stored' | 'already_stored' | 'failed' | 'not_attempted', required
    - `target` 'hcti_storage' | 'storage_destination', required
    - `bucket` string, nullable
    - `key` string, nullable
  - `error` string, nullable
  - `referenceId` string, nullable
  - `success` boolean
  - `message` string, required
  - `statusCode` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `408` — Request Timeout
- `410` — Gone
- `422` — Unprocessable Entity
- `424` — Failed Dependency
- `500` — Internal Server Error

---

[API](https://skmtc.dev/htmlcsstoimage/apis/html-css-to-image-api.md) · [All operations](https://skmtc.dev/htmlcsstoimage/apis/html-css-to-image-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/htmlcsstoimage/html-css-to-image-api/revisions/07d679e7b124/schema)
