post https://api.sigmacomputing.com/v2/workbooks//tag//copy
This endpoint lets you duplicate a tagged workbook, creating a new workbook from the tagged version. The workbook copy can be placed in a different folder from the original workbook, potentially with a different name and description. This is useful for creating workbook templates or backups.
Usage notes
- The workbookId and version tag in the URL specify the tagged version of the workbook to duplicate. Retrieve the workbookId by calling the /v2/workbooks endpoint. For the versionTag, you can specify either the tag name or ID. Retrieve the version tag name or ID by calling the /v2/tags endpoint.
- The
destinationFolderId
in the request body specifies where to place the new workbook.- To use the "My Documents" folder for a specific user as the destination folder, call the /v2/members/{memberId} endpoint and use the
homeFolderId
included in the response. - Retrieve the folderId of all folders by calling the /v2/files endpoint and reviewing the
id
field in the response for files with atype
offolder
.
- To use the "My Documents" folder for a specific user as the destination folder, call the /v2/members/{memberId} endpoint and use the
Best practices
- Always verify that the destination folder has the correct permissions set to avoid access issues.