DCTM Rest - Replace a file if already exists

Options

Hi,

We are using the below REST call to upload a new file to documentum (16.4)

http://xxxxx-camqa.prod.xxxxx.com/DctmRest/repositories/dmgbs_cr/folders/0b0138888000dbaa/documents

We are passing the below properties (json) to it
{
properties: {
object_name: xyz.pdf
r_object_type: gbs_bpm_docs }
}

Our requirement is if a file already exists with the same filename, we want to replace it instead of creating a new object.

Is there a parameter/property I can set to acheive this?

Your help is much appreciated!

Comments

  • AFAIK - no. Documentum actually allows you store files with duplicate names, which is why everything uses r_object_id of document. This includes versioning - each version has different object ID.

  • Thanks for your quick response.

    In the Documentum Client Module for Captiva we have an option to replace file if same filename exists. Please see screen shot attached.

    Was wodering if same can be done with REST as well.

    Thank You

  • Ah - my guess is since is Captiva is client app - its probably doing its own custom query and checkout/checkin.