Duplicate a collection
duplicateCollectionDuplicate an API collection into another workspace, optionally appending a suffix to its name. Track the operation status using the returned task ID.
Instructions
Creates a duplicate of the given collection in another workspace.
Use the GET `/collection-duplicate-tasks/{taskId}` endpoint to get the duplication task's current status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collectionId": "<collectionId>",
"workspace": "<workspace>"
},
"name": "duplicateCollection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suffix | No | An optional suffix to append to the duplicated collection's name. | |
| workspace | Yes | The workspace ID in which to duplicate the collection. | |
| collectionId | Yes | The collection's unique ID. |