Update a subscription's report payload, schedule event, or notification channels. To change the expiration date, use Renew instead.
Request body example
{
"application_config": {
"app": "batch_api_v5",
"metadata": {
"request_type": "post",
"payload": {
"report_query": { "tables": [{ "vtable": "traffic_and_engagement", "granularity": "monthly", "filters": { "domains": ["similarweb.com"], "countries": ["US", "GB"] }, "metrics": ["all_traffic_visits", "desktop_visits", "mobile_visits"], "start_date": "$date", "end_date": "$date" }] },
"delivery_information": { "delivery_method": "download_link", "response_format": "csv" }
}
}
},
"schedule": { "event": "snapshot", "notifications": [ { "type": "webhook", "url": "https://example.com/hooks/sw", "notify_on": ["completed", "failed"] }, { "type": "email", "recipients": ["analytics@example.com"], "notify_on": ["expiring_soon"] } ] },
"update_message": "Updated notification channels"
}
Response
{
"message": "Subscription Successfully updated"
}