---
title: "Set URL Classification"
method: PUT
path: "/classifications/url-assignments"
tags: ["Project"]
---

# Set URL Classification

`PUT /classifications/url-assignments`

Assign a built-in or custom classification to a URL (overriding any heuristic classification), or clear the assignment by passing null.

## Request body

- object
  - `project_id` string — Required if using a company api key
  - `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.
  - `classification` string, nullable, 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.

## Response `200`

URL classification assignment updated

- object — URL classification assignment updated

## Other responses

- `400` — Response for status 400
- `404` — Response for status 404

---

[API](https://skmtc.net/peec/apis/peec-ai-customer-api.md) · [All operations](https://skmtc.net/peec/apis/peec-ai-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peec/peec-ai-customer-api/versions/92840a1bffa7/schema)
