Analytics · Watchlist
Updates a daily watchlist rule. Fields you leave out keep their current values. Works with Instagram and YouTube accounts.
https://api.pozy.ai/v1/watchlist/rules/{ruleId}Request
Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the analytics resource group disabled get 403 resource_group_disabled. Authentication
Path parameters
| Name | Type | Notes |
|---|---|---|
ruleIdrequired | string |
Request body
application/json, required
namestringUp to 80 characters.
liststringList id or name the rule reads from.
Can be null.
filterobject8 child fields
listIdstringCan be null.
platformstringOne of
instagram,youtube. Can be null.formatsarray of stringEach item: one of
reel,carousel,image,video,short.minViewsintegerCan be null.
minLikesintegerCan be null.
minCommentsintegerCan be null.
outlierMinnumberAt least 1. Can be null.
maxAgeDaysinteger1 to 30. Can be null.
targetAccountIdsarray of stringAt least 1 item. Up to 10 items.
hourUtcintegerDefault
8. 0 to 23.maxPerRunintegerDefault
3. 1 to 10.enabledbooleanDefault
true.
Example
curl -X PATCH "https://api.pozy.ai/v1/watchlist/rules/6cd4059483de62b474d02fe7" \
-H "Authorization: Bearer $POZY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme",
"list": "string",
"filter": {
"listId": "64272240067877d9e057f3da",
"platform": "instagram",
"formats": [
"reel"
]
},
"targetAccountIds": [
"string"
]
}'const res = await fetch("https://api.pozy.ai/v1/watchlist/rules/6cd4059483de62b474d02fe7", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.POZY_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Acme",
list: "string",
filter: {
listId: "64272240067877d9e057f3da",
platform: "instagram",
formats: [
"reel"
]
},
targetAccountIds: [
"string"
]
}),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);import os
import requests
resp = requests.patch(
"https://api.pozy.ai/v1/watchlist/rules/6cd4059483de62b474d02fe7",
headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
json={
"name": "Acme",
"list": "string",
"filter": {
"listId": "64272240067877d9e057f3da",
"platform": "instagram",
"formats": [
"reel",
],
},
"targetAccountIds": [
"string",
],
},
timeout=30,
)
resp.raise_for_status()
print(resp.json())Response
200 on success
ruleobjectrequired11 child fields
idstringrequirednamestringrequiredfilterobjectrequired8 child fields
listIdstringCan be null.
platformstringOne of
instagram,youtube. Can be null.formatsarray of stringEach item: one of
reel,carousel,image,video,short.minViewsintegerCan be null.
minLikesintegerCan be null.
minCommentsintegerCan be null.
outlierMinnumberAt least 1. Can be null.
maxAgeDaysinteger1 to 30. Can be null.
targetAccountIdsarray of stringrequiredactionstringOne of
draft.hourUtcintegerrequired0 to 23.
maxPerRunintegerrequired1 to 10.
enabledbooleanrequiredlastRunAtstring (date-time)Can be null.
lastResultobjectCan be null.
createdAtstring (date-time)
{
"rule": {
"id": "6bfebd43ddc270f6d2c56fc5",
"name": "Acme",
"filter": {
"listId": "64272240067877d9e057f3da",
"platform": "instagram",
"formats": [
"reel"
],
"minViews": 1,
"minLikes": 1,
"minComments": 1,
"outlierMin": 12.5,
"maxAgeDays": 1
},
"targetAccountIds": [
"string"
],
"action": "draft",
"hourUtc": 1,
"maxPerRun": 1,
"enabled": true,
"lastRunAt": "2026-10-02T09:00:00.000Z",
"lastResult": {},
"createdAt": "2026-10-02T09:00:00.000Z"
}
}Errors
Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:
| 400 | invalid_request_error | A parameter or body field is missing or invalid. param names it. |
| 401 | authentication_error | The API key is missing, revoked or expired. |
| 403 | permission_error | The key is read-only, scoped to other profiles, or has this resource group disabled. |
| 404 | not_found | Nothing with that id exists in your workspace. |
| 429 | rate_limit_error | Too many requests this minute. Wait for Retry-After seconds. |
Every code is listed in Errors.