11-30-2023 04:11 AM
Dear reader,
I am using REST API to upload files/folder to Alfresco versions 5.2 and higher.
I've managed to upload many files/folder and set most of the properties.
But when I try to modify the following system fields: 'Creation Date', 'Modified Date', 'Created By', 'Modified By' my requests fail, without any specific message. (ECONNRESET)
I've done some research and I believe it's because these fields are protected, meaning I can't set them, or pass in them in the request body.
Can anyone help me to solve this issue?
Kind regards,
Kamil
11-30-2023 09:37 AM
Protected fields are only managed by the repository using the Java API.
If you need to set custom date fields, you have to define your own date fields in your content model definition.
Hope this helps
Explore our Alfresco products with the links below. Use labels to filter content by product module.