Copy a chart to a workspace
Use this call to copy a published chart version from its workspace to another workspace. Events and tags linked to the original chart are not copied.
The response contains the chartKey of the new chart. You can store this in your database, and use it to refer to the newly created chart in the future.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
POST https://api-{region}.seatsio.net/charts/{chartKey}/version/published/actions/copy-to-workspace/{workspaceKey}
$seatsioClient->charts->copyToWorkspace("749b9650-24fb-11e7-93ae-92361f002671", "18725661-36d6-4755-905a-28ce82d0c2d5");
Client.Charts.CopyToWorkspace("749b9650-24fb-11e7-93ae-92361f002671", "18725661-36d6-4755-905a-28ce82d0c2d5");
client.charts.copyToWorkspace("749b9650-24fb-11e7-93ae-92361f002671", "18725661-36d6-4755-905a-28ce82d0c2d5");
client.charts.copy_to_workspace("749b9650-24fb-11e7-93ae-92361f002671", "18725661-36d6-4755-905a-28ce82d0c2d5")
client.charts.copy_to_workspace("749b9650-24fb-11e7-93ae-92361f002671", "18725661-36d6-4755-905a-28ce82d0c2d5")
await client.charts.copyToWorkspace('chartKey', '18725661-36d6-4755-905a-28ce82d0c2d5');
copiedChart, err := client.Charts.CopyToWorkspace("chartKey", "workspaceKey")
curl -X POST https://api-{region}.seatsio.net/charts/749b9650-24fb-11e7-93ae-92361f002671/version/published/actions/copy-to-workspace/18725661-36d6-4755-905a-28ce82d0c2d5 \
-u anAdminKey:
{
"name":"chart2",
"id":"19",
"key":"749b9650-24fb-11e7-93ae-92361f002671",
"status":"NOT_USED",
"tags": [],
"archived": false,
"publishedVersionThumbnailUrl": "https://cdn.seats.io/system/public/.../published/.../thumbnail"
}
A note about authentication
Because copying a chart between workspaces is an operation that requires privileges on both workspaces, you'll need to use your company admin key as a secret key. You can find the admin key at your company settings page.