Tasks

Create image upload URL

Changed on

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.

put/task/image-upload/{id}

Request

  • Base URL
    https://cloud.kaneo.app/api
  • URL
    https://cloud.kaneo.app/api/task/image-upload/{id}
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

filenamestring required
contentTypestring required
sizenumber required
surface'description' | 'comment' required

Where the image is used, which decides how it is scoped.

Response

The presigned upload

keystring required

Object key to send back to the finalize route.

uploadUrlstring required

Presigned URL to PUT the image bytes to.

headersobject required

Headers that must accompany the upload request, including Content-Type.

Changes

    • breaking

      removed the media type text/plain for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • breaking

      removed the media type text/plain for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the media type application/json for the response with the status

    • info

      added the media type text/plain for the response with the status

    • info

      added the media type text/plain for the response with the status

    • info

      added the media type text/plain for the response with the status

    • info

      added the media type text/plain for the response with the status

    • info

      added the non-success response with the status