Skip to main content
PUT
/
classifications
/
url-assignments
Set URL Classification
curl --request PUT \
  --url https://api.peec.ai/customer/v1/classifications/url-assignments \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "url": "<string>",
  "classification": "<string>",
  "project_id": "or_f45b94ba-5e35-4982-93ed-285e72ee14eb"
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.peec.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Body

url
string
required

URL to classify. The override applies to the normalized form, so it covers every source row that canonicalizes to the same URL.

Minimum string length: 1
classification
string | null
required

Built-in classification (HOMEPAGE, CATEGORY_PAGE, PRODUCT_PAGE, LISTICLE, COMPARISON, PROFILE, ALTERNATIVE, DISCUSSION, HOW_TO_GUIDE, ARTICLE, OTHER) or the name of a custom URL classification. Pass null to clear the assignment.

Required string length: 1 - 60
project_id
string

Required if using a company api key

Example:

"or_f45b94ba-5e35-4982-93ed-285e72ee14eb"

Response

URL classification assignment updated

URL classification assignment updated