Copy draft version
Use this call to create a copy of a chart, based on the draft chart version. The draft version of the source chart is used as the published version of the new chart.
The chart name and tags are copied as well.
Note that the new chart name will have " (copy)" appended to it. E.g. if the original chart name was "My Super Chart", the copy's name will be "My Super Chart (copy)".
Events linked to the original chart and the published version 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/draft/actions/copy
$seatsioClient->charts->copyDraftVersion("749b9650-24fb-11e7-93ae-92361f002671");
await Client.Charts.CopyDraftVersionAsync("749b9650-24fb-11e7-93ae-92361f002671");
client.charts.copyDraftVersion("749b9650-24fb-11e7-93ae-92361f002671");
client.charts.copy_draft_version("749b9650-24fb-11e7-93ae-92361f002671")
client.charts.copy_draft_version("749b9650-24fb-11e7-93ae-92361f002671")
await client.charts.copyDraftVersion('chartKey');
copiedChart, err := client.Charts.CopyDraftVersion("chartKey")
curl -X POST https://api-{region}.seatsio.net/charts/749b9650-24fb-11e7-93ae-92361f002671/version/draft/actions/copy \
-u aSecretKey:
{
"name":"chart2",
"id":"19",
"key":"749b9650-24fb-11e7-93ae-92361f002671",
"status":"NOT_USED",
"tags": ["tag1", "tag2"],
"archived": false,
"publishedVersionThumbnailUrl": "https://cdn.seats.io/system/public/.../published/.../thumbnail"
}