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

# Set URL Classification

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



## OpenAPI

````yaml https://api.peec.ai/customer/v1/openapi/json put /classifications/url-assignments
openapi: 3.0.3
info:
  title: Peec AI Customer API
  description: Development documentation
  version: 1.0.0
  contact:
    name: Peec AI Team
    email: support@peec.ai
servers:
  - url: https://api.peec.ai/customer/v1
security: []
paths:
  /classifications/url-assignments:
    put:
      tags:
        - Project
      summary: Set URL Classification
      description: >-
        Assign a built-in or custom classification to a URL (overriding any
        heuristic classification), or clear the assignment by passing null.
      operationId: putClassificationsUrl-assignments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                project_id:
                  description: Required if using a company api key
                  example: or_f45b94ba-5e35-4982-93ed-285e72ee14eb
                  type: string
                url:
                  type: string
                  minLength: 1
                  description: >-
                    URL to classify. The override applies to the normalized
                    form, so it covers every source row that canonicalizes to
                    the same URL.
                classification:
                  nullable: true
                  description: >-
                    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.
                  type: string
                  minLength: 1
                  maxLength: 60
              required:
                - url
                - classification
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                project_id:
                  description: Required if using a company api key
                  example: or_f45b94ba-5e35-4982-93ed-285e72ee14eb
                  type: string
                url:
                  type: string
                  minLength: 1
                  description: >-
                    URL to classify. The override applies to the normalized
                    form, so it covers every source row that canonicalizes to
                    the same URL.
                classification:
                  nullable: true
                  description: >-
                    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.
                  type: string
                  minLength: 1
                  maxLength: 60
              required:
                - url
                - classification
          multipart/form-data:
            schema:
              type: object
              properties:
                project_id:
                  description: Required if using a company api key
                  example: or_f45b94ba-5e35-4982-93ed-285e72ee14eb
                  type: string
                url:
                  type: string
                  minLength: 1
                  description: >-
                    URL to classify. The override applies to the normalized
                    form, so it covers every source row that canonicalizes to
                    the same URL.
                classification:
                  nullable: true
                  description: >-
                    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.
                  type: string
                  minLength: 1
                  maxLength: 60
              required:
                - url
                - classification
      responses:
        '200':
          description: URL classification assignment updated
          content:
            application/json:
              schema:
                type: object
                properties: {}
                description: URL classification assignment updated
        '400':
          description: Response for status 400
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '404':
          description: Response for status 404
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - APIKeyHeader: []
        - APIKeyQuery: []
        - BearerAuth: []
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    APIKeyQuery:
      type: apiKey
      in: query
      name: api_key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````