Duplicate
This documentation is for LiquidPlanner New: next.liquidplanner.com
Use this endpoint to create a project from an existing project template or to duplicate other plan items in the workspace (including Package, Projects, Sub Folders and Tasks) and specify the location (parent container) where the duplicated item should be placed.
If no location is specified, the duplicated item is created below the original item in the same parent container.
When the location is specified, the duplicated item is added at the bottom in the specified location (parent container) if no priority position is provided.
To learn more about how this feature works, check out our documentation here: [Duplicate Projects & Create Templates] (https://www.liquidplanner.com/academy/duplicate-plan-items/)
https://next.liquidplanner.com/api/workspaces/<workspace id>/items/v1/<item id>/duplicate
Supported Methods
POST
The example below will make a copy of a task and place it in the specified project.
curl --location --request POST 'https://next.liquidplanner.com/api/workspaces/<workspace id>/items/v1/<task id>/duplicate' \
--header 'Authorization: Bearer <API Token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentId": <id of the destination project>,
}'
The example below will make a copy of a project template and place it above “Project A” in the Scheduled collection.
curl --location --request POST 'https://next.liquidplanner.com/api/workspaces/<workspace id>/items/v1/<id of the template project”/duplicate' \
--header 'Authorization: Bearer <API Token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentId": <id of the destination package”,
"relativePriority": {
"id": <id of Project A>,
"type": "before"
}
}
Sample Response
N/A
Filter Options
N/A
Updated about 2 years ago