Update Watch Rules
curl --request PATCH \
--url https://truckerfetch.com/api/v1/watchlists/{id}/rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paused": true,
"event_types": []
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({paused: true, event_types: []})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://truckerfetch.com/api/v1/watchlists/{id}/rules"
payload = {
"paused": True,
"event_types": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": "<unknown>",
"meta": {},
"next_cursor": "<string>"
}API Reference
Update Watch Rules
Requires active Pro and an owner-scoped REST bearer key. Required scopes: watchlists:write. Changes future event matching or pauses/resumes this owned watchlist. At least one field is required. Insurance event types additionally require insurance:read and insurance availability.
PATCH
/
watchlists
/
{id}
/
rules
Update Watch Rules
curl --request PATCH \
--url https://truckerfetch.com/api/v1/watchlists/{id}/rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paused": true,
"event_types": []
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({paused: true, event_types: []})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://truckerfetch.com/api/v1/watchlists/{id}/rules"
payload = {
"paused": True,
"event_types": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": "<unknown>",
"meta": {},
"next_cursor": "<string>"
}Authorizations
Owner-scoped Pro API key
Path Parameters
Body
application/json
Maximum array length:
24Available options:
first_observed, contact_changed, equipment_changed, census_status_changed, profile_changed, census_reactivated, reappeared, carrier.observed, carrier.source_removed, authhist.observed, authhist.source_removed, revokesuspend.observed, revokesuspend.source_removed, authority.pending_application, authority.granted, authority.suspended, authority.reinstated, authority.revoked, authority.denied, authority.withdrawn, insur.observed, insur.source_removed, inshist.observed, inshist.source_removed