curl --request PUT \
--url http://api.globalwebindex.com/v1/charts/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"attributes": [
{
"datapoint_code": "<string>",
"namespace_code": "<string>",
"question_code": "<string>",
"suffix_code": "<string>"
}
],
"audiences": [
{
"color_index": 123,
"expression": {
"and": [
{}
],
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": [
{}
],
"question": "<string>",
"suffixes": [
"<any>"
]
},
"id": "<string>",
"is_hidden": true,
"name": "<string>"
}
],
"base_audience": {
"color_index": 123,
"expression": {
"and": [
{}
],
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": [
{}
],
"question": "<string>",
"suffixes": [
"<any>"
]
},
"id": "<string>",
"is_hidden": true,
"name": "<string>"
},
"color": "<string>",
"created_at": 123,
"dataset_codes": [
"<string>"
],
"dataset_names": [
"<string>"
],
"folder_id": "<string>",
"group_type": 123,
"id": "<string>",
"is_owner": true,
"is_public": true,
"is_shared": true,
"location_codes": [
"<string>"
],
"metrics": [
"<string>"
],
"name": "<string>",
"owner_email": "<string>",
"owner_id": 123,
"segmented_base": true,
"segments": [
"<string>"
],
"shared_at": 123,
"shared_type": "<string>",
"sort_parameter_type": 123,
"sort_parameter_value": "<string>",
"sort_type": 123,
"splitter": "<string>",
"updated_at": 123,
"view_type": 123,
"wave_codes": [
"<string>"
]
}'
"<string>"
Update a user chart. This endpoint does not handle audiences the user has not access to.
curl --request PUT \
--url http://api.globalwebindex.com/v1/charts/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"attributes": [
{
"datapoint_code": "<string>",
"namespace_code": "<string>",
"question_code": "<string>",
"suffix_code": "<string>"
}
],
"audiences": [
{
"color_index": 123,
"expression": {
"and": [
{}
],
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": [
{}
],
"question": "<string>",
"suffixes": [
"<any>"
]
},
"id": "<string>",
"is_hidden": true,
"name": "<string>"
}
],
"base_audience": {
"color_index": 123,
"expression": {
"and": [
{}
],
"datapoints": [
"<string>"
],
"min_count": 123,
"not": true,
"or": [
{}
],
"question": "<string>",
"suffixes": [
"<any>"
]
},
"id": "<string>",
"is_hidden": true,
"name": "<string>"
},
"color": "<string>",
"created_at": 123,
"dataset_codes": [
"<string>"
],
"dataset_names": [
"<string>"
],
"folder_id": "<string>",
"group_type": 123,
"id": "<string>",
"is_owner": true,
"is_public": true,
"is_shared": true,
"location_codes": [
"<string>"
],
"metrics": [
"<string>"
],
"name": "<string>",
"owner_email": "<string>",
"owner_id": 123,
"segmented_base": true,
"segments": [
"<string>"
],
"shared_at": 123,
"shared_type": "<string>",
"sort_parameter_type": 123,
"sort_parameter_value": "<string>",
"sort_type": 123,
"splitter": "<string>",
"updated_at": 123,
"view_type": 123,
"wave_codes": [
"<string>"
]
}'
"<string>"
JWT token for authentication
Chart id.
Update chart request body, id on body is not used.
The body is of type object
.
Updated chart ID
The response is of type string
.
Was this page helpful?