Project duplication mode - UI vs. API
![Marlan](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n5296i8F6B67FE68128A4A.jpg)
Hi all,
I'm using the API to duplicate projects (project_handle.duplicate()). There is a duplication mode argument for the duplicate method. I am trying to understand how options passed in this argument correspond to those provided in the UI.
Here's what seems clear in terms of API values for each UI option:
DSS UI | DSS API |
Flow only | NONE |
Uploaded files | ??? |
Required inputs | ??? |
Full duplication | FULL |
Input sharing | SHARING |
According the the documentation, duplication_mode can be one of the following values: MINIMAL, SHARING, FULL, NONE.
Does anyone know which UI option MINIMAL corresponds to? And is there another duplication mode that is not not documented (UI provides 5, doc for API lists 4)?
Thanks!
Marlan
Operating system used: Linux Red Hat
Best Answer
-
Hi @Marlan
,Here's the complete list of duplication modes:
DSS UI DSS API Flow only NONE Uploaded files UPLOADS_ONLY Required inputs MINIMAL Full duplication FULL Input sharing SHARING For reference, I determined this by watching the DATA_DIR/run/backend.log file while I duplicated a project in the UI. The duplication mode that the UI uses is logged.
Thanks,
Zach