Rename, re-schedule, or replace the URL list
const url = 'https://api.traaker.ai/api/public/v1/brands/example/content-audits/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","cadence":"once","rewrite":true,"scoreDropAlerts":true,"urls":[{"url":"https://example.com","contentType":"auto","templateId":"example","pinned":{"type":true,"template":true}}],"defaultContentType":"auto"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.traaker.ai/api/public/v1/brands/example/content-audits/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "cadence": "once", "rewrite": true, "scoreDropAlerts": true, "urls": [ { "url": "https://example.com", "contentType": "auto", "templateId": "example", "pinned": { "type": true, "template": true } } ], "defaultContentType": "auto" }'Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Bodyrequired
Section titled “ Request Bodyrequired ”object
once removes the schedule.
Score-drop alerts for this audit. Unset = on for the Reference Audit only.
Replaces the list (a new list version). A Run already queued keeps the list it was queued with.
object
Http(s) on a public host. Normalised before storing: the fragment, tracking parameters (utm_*, gclid, fbclid…) and platform session parameters are removed, the other parameters are sorted; duplicates (same URL after that) are removed.
Overrides defaultContentType and the platform default for this URL. auto (or unset with no default): the platform’s type when known, else decided at analysis from the page’s structured data.
Output Template: a built-in id (GET …/content-templates/library) or one of the account’s custom templates. Default: the platform × type template, else the type’s generic one.
Which of contentType / templateId were chosen by hand. Unset: whatever is given explicitly is pinned.
object
Only together with urls.
Responses
Section titled “ Responses ”OK
object
object
Absent = score-drop alerts on for the Reference Audit only.
Runs of the last 90 days, newest first. The full history is GET …/runs.
object
Absent while running and on a failed Run; never 0 for “no score”.
A Content Type’s scoring method changed since the previous Run.
object
Example
{ "data": { "origin": "ui", "cadence": "once", "recentRuns": [ { "status": "queued" } ] }}Invalid body: unknown field, unknown contentType (UNKNOWN_CONTENT_TYPE) or templateId (UNKNOWN_TEMPLATE), a URL that is not http(s) on a public host (INVALID_URLS, with the offending indexes), or more than 10 000 URLs (TOO_MANY_URLS).
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}Missing, malformed or revoked API key.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}The subscription is not active.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}API access is not enabled for this account.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}No such brand, Content Audit, Run or page on this account.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}The Content Audit was changed meanwhile (CONCURRENT_EDIT); reload and retry.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}Hourly rate limit exhausted.
object
Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).
On 429 only, how long to wait before retrying, in milliseconds.
Example generated
{ "statusCode": 1, "message": "example", "code": "example", "retryAfterMs": 1}