I have to create records in a dm_registered table using dctm-rest-api.
Using a POST method to create new resources, the request is rejected.
Is there a rest method for creating a record in a registered table?
REQUEST:
curl --location 'https://myRepo.corproot.net:9443/dctm-rest/repositories/eCustomer/folders/0b10c8e0813b8486/documents' \--header 'Accept: application/vnd.emc.documentum+json' \--header 'Content-Type: application/vnd.emc.documentum+json;charset=UTF-8' \--header 'Authorization: Basic c2NfZW1haWxfc21hcnRib3VuY2VfbG9hZGVyOnB5T05zQzVyM1MwbFk2bkVYbVRD' \--data '{"properties": { "r_object_type":"dm_dbo.sc_emailbody", "sc_body_text0":"0123456789", "sc_body_text1":"some information" }}'
EXCEPTION:
"status": 400,
"code": "E_CREATE_OBJECT_WITH_WRONG_TYPE",
"message": "Only dm_document is allowed to be created in this collection.",
"id": "b0be917c-388b-45f9-ab8e-cb3fa6c7f2ba"
Thank you in advance.
Carlo