curl -X PATCH "https://api.adlibapi.com/v1/watchlists/0b7c6a8e-1f2d-4c3b-9a8e-5d6f7a8b9c0d" \
-H "X-API-Key: $ADLIB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Competitors","webhook_url":"https://hooks.example.com/adlib"}'API reference · Watchlists and webhooks
Change a watchlist's name, webhook or email alerts
PATCH
/v1/watchlists/{id}Example request
Send your key in the X-API-Key header. Try it in the explorer.
Parameters
idrequiredpath · string
–
Request body
email_alertsboolean
Mail a digest of each crawl's changes to your account's email
namestring
–
webhook_urlstring
New webhook URL (Slack and Discord webhooks get a readable message); empty string removes it
Response
data.advertiser_countrequiredinteger
–
data.advertisersrequiredobject[]
Empty in the list endpoint; GET /v1/watchlists/{id} has the entries
active_ads_knowninteger
–
advertiser_idstring
–
last_crawl_atdatetime
–
last_errorstring
–
namestring
–
next_crawl_atdatetime
–
data.archive_videosrequiredboolean
–
data.created_atrequireddatetime
–
data.email_alertsrequiredboolean
A digest of each crawl's changes goes to the account's email
data.idrequiredstring
–
data.interval_hoursrequiredinteger
Crawl interval, as set with interval_hours on create
data.namerequiredstring
–
data.webhook_urlrequiredstring
–