post https://api.things5.digital/v1/service//knowledge_base/document_file
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
field | content |
---|---|
document_name | the title of the document |
file_name | the name of the image file (should be unique throughout all organization files) |
label | the label that will be shown alongside the image |
uuid | the UUID of the image, as referenced in "content" |
upload_request_id | the 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)"
}
]
}