v6

latestOpenAPI 3.0.0raw.githubusercontent.com2024-10-187525179.6 KB
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"
    }
  }
}