Just checking these out -
Here is my docs instance -
The top level folder has 2 child items.
https://yourDocs/documents/api/1.0/folders/self/items
https://yourDocsCloud/documents/api/1.0/folders/folderId/items
Here I am looking at folder LoanApplicant Documents-1.0
Now I want to add a file to a folder - Legal Approver Documents.
I will add a file - Legal Guidelines for Loan applications.pdf -
to the Legal Approver Documents folder -
The target folder id is -
FC49A0CD248C1383DBE23AD8792D7AFFFD19D5D0D745
I upload the file to a new directory on docs and then use the
REST API to copy the file to the target directory.
Now the id of this uploaded file is -
D2E4DE04395A0B18EA72D633792D7AFFFD19D5D0D745
Let's look at the Copy -
The ORCL docs give the following example -
Validate in Docs -
ORCL docs here
Here is my docs instance -
Get top level folder details
https://yourDocs/documents/api/1.0/folders
The top level folder has 2 child items.
Get Top level folder items
https://yourDocs/documents/api/1.0/folders/self/items
Get the contents of a folder
To do this I use the command above, replacing self with the folder id.
https://yourDocsCloud/documents/api/1.0/folders/folderId/items
Here I am looking at folder LoanApplicant Documents-1.0
The folder has the id -
F6580213B0C8A33152957172792D7AFFFD19D5D0D745
It contains 3 sub-folders.
It contains 3 sub-folders.
Now I want to add a file to a folder - Legal Approver Documents.
I will add a file - Legal Guidelines for Loan applications.pdf -
to the Legal Approver Documents folder -
FC49A0CD248C1383DBE23AD8792D7AFFFD19D5D0D745
I upload the file to a new directory on docs and then use the
REST API to copy the file to the target directory.
Now the id of this uploaded file is -
D2E4DE04395A0B18EA72D633792D7AFFFD19D5D0D745
Copy a File from one Docs Directory to another
Let's look at the Copy -
The ORCL docs give the following example -
POST .../files/D4018B1EF3AC07D0A349DB8DT0000000000100000001/copy
{ "destinationID": "FF4729683CD68C1AFB1AE87DT0000000000100000001" "version": "1" }So let's try it out...
Validate in Docs -
Check out the official Documentation
ORCL docs here
1 comment:
Thanks, I have linked to this here: https://jonathanhult.com/blog/2015/02/oracle-documents-cloud-service-resources/
Post a Comment