Tasks

Finalize image upload

Record an uploaded image as a private asset and return the URL to reference it by.

post/task/image-upload/{id}/finalize

Path parameters

idstring required

Request body

keystring required

The key returned when the URL was issued.

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

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

Response

The stored asset

idstring required
urlstring required

Where the stored image can be read back from.

Changes

Changed in 2 of the 23 revisions of this API.7

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 404

      response-non-success-status-added

    • added the required property id to the response with the 200 status

      response-required-property-added

    • added the required property url to the response with the 200 status

      response-required-property-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added