Update user-specific settings
curl --request PUT \
--url https://api.sitespy.app/api/v1/settings/user \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"time_between_check": {
"hours": 6
},
"email_notifications": {
"enabled": true,
"email": "user@example.com"
},
"global_ignore_text": [
"/\\d{4}-\\d{2}-\\d{2}/",
"cookie"
],
"global_subtractive_selectors": [
".cookie-banner",
"nav"
]
}
'import requests
url = "https://api.sitespy.app/api/v1/settings/user"
payload = {
"time_between_check": { "hours": 6 },
"email_notifications": {
"enabled": True,
"email": "user@example.com"
},
"global_ignore_text": ["/\d{4}-\d{2}-\d{2}/", "cookie"],
"global_subtractive_selectors": [".cookie-banner", "nav"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
time_between_check: {hours: 6},
email_notifications: {enabled: true, email: 'user@example.com'},
global_ignore_text: ['/\d{4}-\d{2}-\d{2}/', 'cookie'],
global_subtractive_selectors: ['.cookie-banner', 'nav']
})
};
fetch('https://api.sitespy.app/api/v1/settings/user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"time_between_check": {
"weeks": 1,
"days": 1,
"hours": 1,
"minutes": 1,
"seconds": 1
},
"email_notifications": {
"enabled": true,
"email": "jsmith@example.com"
},
"global_ignore_text": [
"<string>"
],
"global_subtractive_selectors": [
"<string>"
],
"noise_reduction_timestamps": true,
"noise_reduction_ads": true
}User Settings
Update user-specific settings
Update the authenticated user’s custom settings, such as default recheck interval for new watches, email notification preferences, and global ignore patterns.
PUT
/
settings
/
user
Update user-specific settings
curl --request PUT \
--url https://api.sitespy.app/api/v1/settings/user \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"time_between_check": {
"hours": 6
},
"email_notifications": {
"enabled": true,
"email": "user@example.com"
},
"global_ignore_text": [
"/\\d{4}-\\d{2}-\\d{2}/",
"cookie"
],
"global_subtractive_selectors": [
".cookie-banner",
"nav"
]
}
'import requests
url = "https://api.sitespy.app/api/v1/settings/user"
payload = {
"time_between_check": { "hours": 6 },
"email_notifications": {
"enabled": True,
"email": "user@example.com"
},
"global_ignore_text": ["/\d{4}-\d{2}-\d{2}/", "cookie"],
"global_subtractive_selectors": [".cookie-banner", "nav"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
time_between_check: {hours: 6},
email_notifications: {enabled: true, email: 'user@example.com'},
global_ignore_text: ['/\d{4}-\d{2}-\d{2}/', 'cookie'],
global_subtractive_selectors: ['.cookie-banner', 'nav']
})
};
fetch('https://api.sitespy.app/api/v1/settings/user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"time_between_check": {
"weeks": 1,
"days": 1,
"hours": 1,
"minutes": 1,
"seconds": 1
},
"email_notifications": {
"enabled": true,
"email": "jsmith@example.com"
},
"global_ignore_text": [
"<string>"
],
"global_subtractive_selectors": [
"<string>"
],
"noise_reduction_timestamps": true,
"noise_reduction_ads": true
}Authorizations
Body
application/json
Response
Settings updated successfully

