Clone Workset
Last updated
Last updated
This API will create a copy of the workset with the new name specified in the API call. It is run as a POST call and adds a variable for the new workset name to the call used to get workset details (ie, after 'workset' the API includes the instruction 'clone' and then the ID of the workset being cloned and the name of the new workset being created).
The API looks like the example below.
https://<server>:<port>/core/API/workSet/clone/<workset_id>?name=<new_name>
When creating this url, remember to use a new name ending in '_workset'.
In this case, we are cloning the workset ‘api_2_workset’ shown below.
The body of this call is still the very simple body (user ID, password, and project).
{
"context": {
"user": "mbj_test",
"password": "xxxx",
"project": {
"name": "imp_payments_demo",
"version": "1.0"
}
}
}
When run, the response shows the details of the cloned workset.
TDO now shows the cloned workset in the workset listing, and when you edit that workset the details are the same as the one that was cloned.