Thanks that exactly what I was saying.
But then then the request body to create
“{
“description”: “string”,
“document_type”: {
“delete_time_period”: 2147483647,
“delete_time_unit”: “days”,
“document_stub_expiration_interval”: 9223372036854776000,
“document_stub_pruning_enabled”: true,
“filename_generator_backend”: “string”,
“filename_generator_backend_arguments”: “string”,
“label”: “string”,
“trash_time_period”: 2147483647,
“trash_time_unit”: “days”
},
“file_latest”: {
“comment”: “string”,
“filename”: “string”,
“pages_first”: {}
},
“label”: “string”,
“language”: “string”,
“version_active”: {
“active”: true,
“comment”: “string”,
“pages_first”: {
“content_type”: {},
“content_type_id”: 0,
“object_id”: 2147483647,
“page_number”: 2147483647
}
}
}”
is the same as the request body for the upload document which is as below
{
“description”: “string”,
“document_type”: {
“delete_time_period”: 2147483647,
“delete_time_unit”: “days”,
“document_stub_expiration_interval”: 9223372036854776000,
“document_stub_pruning_enabled”: true,
“filename_generator_backend”: “string”,
“filename_generator_backend_arguments”: “string”,
“label”: “string”,
“trash_time_period”: 2147483647,
“trash_time_unit”: “days”
},
“label”: “string”,
“language”: “string”,
“file_latest”: {
“comment”: “string”,
“filename”: “string”,
“pages_first”: {}
},
“version_active”: {
“active”: true,
“comment”: “string”,
“pages_first”: {
“content_type”: {},
“content_type_id”: 0,
“object_id”: 2147483647,
“page_number”: 2147483647
}
}
}
If you could put me through on the exact payload to use in other to create a document.
The last question : How do I use the same endpoints to upload multiple files?
Thanks once again for your response.