Aller au contenu

Rename, re-schedule, or replace the URL list

PATCH
/brands/{brandId}/content-audits/{contentAuditId}
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" }'
brandId
required
string
contentAuditId
required
string
Media type application/json
object
name
string
>= 1 characters <= 200 characters
cadence

once removes the schedule.

string
Allowed values: once daily weekly monthly
rewrite
boolean
scoreDropAlerts

Score-drop alerts for this audit. Unset = on for the Reference Audit only.

boolean
urls

Replaces the list (a new list version). A Run already queued keeps the list it was queued with.

Array<object>
>= 1 items <= 10000 items
object
url
required

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.

string format: uri
<= 2048 characters
contentType

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.

string
Allowed values: auto product category page article listing establishment encyclopedia profile job_posting
templateId

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.

string
pinned

Which of contentType / templateId were chosen by hand. Unset: whatever is given explicitly is pinned.

object
type
boolean
template
boolean
defaultContentType

Only together with urls.

string
Allowed values: auto product category page article listing establishment encyclopedia profile job_posting

OK

Media type application/json
object
data
required
object
contentAuditId
string
brandId
string
name
string
origin
string
Allowed values: ui api migration
cadence
string
Allowed values: once daily weekly monthly
rewrite
boolean
isReference
boolean
scoreDropAlerts

Absent = score-drop alerts on for the Reference Audit only.

boolean
urlListVersion
integer
urlCount
integer
recentRuns

Runs of the last 90 days, newest first. The full history is GET …/runs.

Array<object>
object
runId
string
startedAt
string format: date-time
finishedAt
string format: date-time
status
string
Allowed values: queued running finished failed
score

Absent while running and on a failed Run; never 0 for “no score”.

number
methodChanged

A Content Type’s scoring method changed since the previous Run.

boolean
recentRunsTruncated
boolean
createdAt
string format: date-time
updatedAt
string format: date-time
meta
required
object
brandId
string
contentAuditId
string

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).

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

Missing, malformed or revoked API key.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

The subscription is not active.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

API access is not enabled for this account.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

No such brand, Content Audit, Run or page on this account.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

The Content Audit was changed meanwhile (CONCURRENT_EDIT); reload and retry.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}

Hourly rate limit exhausted.

Media type application/json
object
statusCode
required
integer
message
required
string
code

Machine-readable discriminator, present on some errors (e.g. RATE_LIMITED on 429).

string
retryAfterMs

On 429 only, how long to wait before retrying, in milliseconds.

integer

Example generated

{
"statusCode": 1,
"message": "example",
"code": "example",
"retryAfterMs": 1
}