cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to update properties of DMS repo

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes
325

I am working with SAP BTP DMS (Document Management Service) and the integration option

  • I want to update properties of a DMS repo, such as externalId. What API can I use to modify these properties?
  • I have created repos with a name (e.g., "Test_Repository") and the repositoryId is also set to this name. I can use this ID in other CMIS API calls, but when I try to update properties with https://{{endpoint}}/rest/v2/repositories/Test_Repository it says there is no repo with that ID. I can then get an ID by running https://{{endpoint}}/rest/v2/repositories and then checking the ID associated with this repo.Dan_Wroblewski_0-1748258834464.png I do not understand what is going on or the relationship between these 2 sets of APIs.
  • In the end, I tried to update with PUT the repos description with this API https://{{endpoint}}/rest/v2/repositories/Test_Repository and I can see it updated when I run this API but when I run the CMIS API the new description is not reflected.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Hello Dan,

It depends on what you are using to connect to the DMS.

From the screenshot you send, it looks like you are working with postman.
If you are using Postman, you would have to PUT https://{{endpoint}}/rest/v2/repositories/(Repository ID) and hit send.

BasisSyntax_BasisSyntax_1-1753341397767.png

If you work with the SAP API, you would have to select PUT /rest/v2/repositories/{id} and in the parameters part, add the id of the repository you want to modify and in the body include the change you need and hit run.
In my case, to make the change with PUT, I added to the body, all the json of my repository, with the modified part.

BasisSyntax_BasisSyntax_0-1753341162990.png

I hope this has helped you.

Regards.
Santiago.