Attachments

Create an attachment

Creating an attachment object creates a database record and returns the inputs needed to generate a signed url and upload the file from the client to cloud storage.

post/attachments.create

Request body

namestring required
documentIdstring uuid

Identifier for the associated document, if any.

contentTypestring required
sizenumber required

Size of the file attachment in bytes.

Example request

{
  "name": "image.png",
  "contentType": "image/png"
}

Response

OK

Example response

{
  "data": {
    "attachment": {
      "contentType": "image/png"
    }
  }
}

Changes

Changed in 2 of the 6 revisions of this API.10

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the optional property data to the response with the 400 status

      response-optional-property-added

    • added the optional property data to the response with the 401 status

      response-optional-property-added

    • added the optional property data to the response with the 403 status

      response-optional-property-added

    • added the optional property message to the response with the 400 status

      response-optional-property-added

    • added the optional property message to the response with the 401 status

      response-optional-property-added

    • added the optional property message to the response with the 403 status

      response-optional-property-added

    • added the optional property status to the response with the 400 status

      response-optional-property-added

    • added the optional property status to the response with the 401 status

      response-optional-property-added

    • added the optional property status to the response with the 403 status

      response-optional-property-added