curl --request POST \
--url https://api.example.com/api/v1/accounts/{accountId}/projects/{projectId}/widgets/{widgetId}/duplicate{
"id": "<string>",
"accountId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"type": "<string>",
"projectId": "<string>",
"attributes": {},
"deployments": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"environmentId": "<string>",
"widgetId": "<string>",
"accountId": "<string>",
"widgetConfigurations": [
{
"widgetConfigurationId": "<string>",
"distributionPercentage": 123,
"widgetConfigurationVersion": 123
}
]
}
],
"lastWidgetConfigurationVersion": 123,
"lastDeltaSequenceNumber": 123
}Duplicates an existing widget for the specified account and project
curl --request POST \
--url https://api.example.com/api/v1/accounts/{accountId}/projects/{projectId}/widgets/{widgetId}/duplicate{
"id": "<string>",
"accountId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"type": "<string>",
"projectId": "<string>",
"attributes": {},
"deployments": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"environmentId": "<string>",
"widgetId": "<string>",
"accountId": "<string>",
"widgetConfigurations": [
{
"widgetConfigurationId": "<string>",
"distributionPercentage": 123,
"widgetConfigurationVersion": 123
}
]
}
],
"lastWidgetConfigurationVersion": 123,
"lastDeltaSequenceNumber": 123
}The ID of the account
The ID of the project
The ID of the widget to duplicate
Show child attributes