eDocs Rest API for delete reference is not working
I am trying to delete the reference by using below url,
http://10.234.81.245:8000/edocsapi/v1.0/documents/8/references?library=ARDEMO
but not working getting below things in the logs,
2021-07-21 10:22:27,145 [ 10.141.40.206][SYSTEM][12080]->[HTTP] OPTIONS /edocsapi/v1.0/documents/8/references?library=ARDEMO 2021-07-21 10:22:27,160 [ 10.141.40.206][SYSTEM][12080]<-[HTTP] 200 OK 2021-07-21 10:22:27,523 [ 10.141.40.206][SYSTEM][1180]->[HTTP] DELETE /edocsapi/v1.0/documents/8/references?library=ARDEMO 2021-07-21 10:22:27,523 [ 10.141.40.206][DMUSER][1180]DEBUG: REQUEST ERROR DELETE /edocsapi/v1.0/documents/8/references?library=ARDEMO Invalid data 2021-07-21 10:22:27,523 [ 127.0.0.1][SYSTEM][1180]WARNING: BAD REQUEST [DELETE] 2021-07-21 10:22:27,523 [ 10.141.40.206][SYSTEM][1180]<-[HTTP] 400 Bad Request
could you please share some thought on this.
Comments
-
The request requires three parameters
refsysid = system id** of the reference to remove
refid = id of the container to remove reference from
reflib = library of the container to remove reference from
** SYSTEM_ID or REMOTE_SYSTEM_ID if not the same library as the container
0 -
The DELETE request url takes only two parameters,
/edocsapi/v1.0/documents/8/references?library=ARDEMO
8 here refers to the DOC NUM of document for which the reference to be deleted. ARDEMO is the library name. Where do we need to pass the System Id ? Please provide the sample working request.
0 -
To delete an individual reference:
/edocsapi/v1.0/documents/8/references?library=ARDEMO&refsysid=<systemid>&refid=<id>&reflib=<lib>
0 -
This may save you a couple of steps...
Delete all the references at the time of delete can be done by including the "delrefs" parameter
/edocsapi/v1.0/documents/8?library=ARDEMO&delrefs
0 -
Thanks it works..
1
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 150 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 183 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 7 XM Fax
- Follow Categories