Rename Watchlist
curl --request PATCH \
--url https://truckerfetch.com/api/v1/watchlists/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}', 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}"
payload = { "name": "<string>" }
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
Rename Watchlist
Requires active Pro and an owner-scoped REST bearer key. Required scopes: watchlists:write. Renames an owned watchlist. The name is trimmed and must contain 1 to 120 characters.
PATCH
/
watchlists
/
{id}
Rename Watchlist
curl --request PATCH \
--url https://truckerfetch.com/api/v1/watchlists/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}', 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}"
payload = { "name": "<string>" }
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>"
}