---
title: "Request a URL to upload a template image."
method: POST
path: "/templates/{id}/images/presign"
tags: ["Library"]
---

# Request a URL to upload a template image.

`POST /templates/{id}/images/presign`

Return a pre-signed S3 URL for uploading an image linked to this template. Enable direct upload from the frontend.

## Path parameters

- `id` string, required

## Headers

- `X-Company-ID` string, required

## Request body

- TemplatePresignImageUploadRequest
  - `file_name` string, required
  - `file_type` string, required

## Response `200`

Successful response with a pre-signed S3 URL and the file path.

- TemplatePresignImageUploadRequest
  - `file_name` string, required
  - `file_type` string, required

## Other responses

- `400` — Validation error messages for invalid requests.

---

[API](https://skmtc.net/cubesoftware/apis/cube-api.md) · [All operations](https://skmtc.net/cubesoftware/apis/cube-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cubesoftware/cube-api/revisions/67d9f45bb99b/schema)
