curl --request PATCH \
--url https://api.example.com/api/v1/accounts/{accountId}/projects/{projectId}/widgets/{widgetId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"attributes": {}
}
'{
"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
}Updates an existing widget for the specified account and project
curl --request PATCH \
--url https://api.example.com/api/v1/accounts/{accountId}/projects/{projectId}/widgets/{widgetId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"attributes": {}
}
'{
"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
Show child attributes