Create new document

Upload a new file to the platform.

Images referenced in this JSON should be uploaded through the dedicated resource https://docs.things5.com/reference/upload-images

fieldcontent
document_namethe title of the document
file_namethe name of the image file (should be unique throughout all organization files)
labelthe label that will be shown alongside the image
uuidthe UUID of the image, as referenced in "content"
upload_request_idthe UUID of the request

Body content:

{
  "document_name": "lele's personal document",
  "images_definition": {
    "images": [
      {
        "file_name": "gigino.png",
        "label": "the important testo",
        "uuid": "9ca35fd7-226b-4084-849f-71193d39f5e2"
      },
      {
        "file_name": "7c015927-7ae6-4088-97ec-7d6f31378097.png",
        "label": "le immaaaaginiiiiiih",
        "uuid": "7c015927-7ae6-4088-97ec-7d6f31378097"
      }
    ],
    "upload_request_id": "9f05cfc0-9587-4be7-9215-3b4f24fd77cb"
  },
  "raw_sections": [
    {
      "title": "demo title",
      "content": "questo è un [testo](9ca35fd7-226b-4084-849f-71193d39f5e2) che ti spiega come inserire i riferimenti alle [immagini](7c015927-7ae6-4088-97ec-7d6f31378097)"
    }
  ]
}
Language
Credentials
Header