> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create image upload URL

> Get a presigned URL for uploading an image used in a task description or comment. PUT the bytes to it, then call the finalize route.



## OpenAPI

````yaml /openapi.json put /task/image-upload/{id}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /task/image-upload/{id}:
    put:
      tags:
        - Tasks
      summary: Create image upload URL
      description: >-
        Get a presigned URL for uploading an image used in a task description or
        comment. PUT the bytes to it, then call the finalize route.
      operationId: createTaskImageUpload
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filename:
                  type: string
                contentType:
                  type: string
                size:
                  type: number
                surface:
                  type: string
                  enum:
                    - description
                    - comment
                  description: Where the image is used, which decides how it is scoped.
              required:
                - filename
                - contentType
                - size
                - surface
      responses:
        '200':
          description: The presigned upload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskImageUpload'
        '400':
          description: Unsupported content type, or the file is too large
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: Task not found
          content:
            text/plain:
              schema:
                type: string
        '503':
          description: Image uploads are not configured on this instance
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    TaskImageUpload:
      type: object
      properties:
        key:
          type: string
          description: Object key to send back to the finalize route.
        uploadUrl:
          type: string
          description: Presigned URL to PUT the image bytes to.
        headers:
          type: object
          additionalProperties:
            type: string
          description: >-
            Headers that must accompany the upload request, including
            Content-Type.
      required:
        - key
        - uploadUrl
        - headers
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````