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

# Update URL Source Tags

> Add and remove source tags on URLs. Removals apply before additions.



## OpenAPI

````yaml https://api.peec.ai/customer/v1/openapi/json put /source-tags/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:
  /source-tags/url-assignments:
    put:
      tags:
        - Project
      summary: Update URL Source Tags
      description: Add and remove source tags on URLs. Removals apply before additions.
      operationId: putSource-tagsUrl-assignments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                urls:
                  minItems: 1
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    minLength: 1
                  example:
                    - https://example.com/best-crm-tools
                  description: >-
                    URLs to tag. A tag applies to the normalized form, so it
                    covers every variant of the URL that normalizes to the same
                    address.
                add_tag_ids:
                  default: []
                  example:
                    - stg_23abec5b-100a-4261-9ee7-1effe68f0149
                  description: >-
                    Source tag ids to add. Adding a tag already present is a
                    no-op.
                  maxItems: 50
                  type: array
                  items:
                    type: string
                remove_tag_ids:
                  default: []
                  example:
                    - stg_23abec5b-100a-4261-9ee7-1effe68f0149
                  description: Source tag ids to remove.
                  maxItems: 50
                  type: array
                  items:
                    type: string
              required:
                - urls
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                urls:
                  minItems: 1
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    minLength: 1
                  example:
                    - https://example.com/best-crm-tools
                  description: >-
                    URLs to tag. A tag applies to the normalized form, so it
                    covers every variant of the URL that normalizes to the same
                    address.
                add_tag_ids:
                  default: []
                  example:
                    - stg_23abec5b-100a-4261-9ee7-1effe68f0149
                  description: >-
                    Source tag ids to add. Adding a tag already present is a
                    no-op.
                  maxItems: 50
                  type: array
                  items:
                    type: string
                remove_tag_ids:
                  default: []
                  example:
                    - stg_23abec5b-100a-4261-9ee7-1effe68f0149
                  description: Source tag ids to remove.
                  maxItems: 50
                  type: array
                  items:
                    type: string
              required:
                - urls
          multipart/form-data:
            schema:
              type: object
              properties:
                urls:
                  minItems: 1
                  maxItems: 500
                  type: array
                  items:
                    type: string
                    minLength: 1
                  example:
                    - https://example.com/best-crm-tools
                  description: >-
                    URLs to tag. A tag applies to the normalized form, so it
                    covers every variant of the URL that normalizes to the same
                    address.
                add_tag_ids:
                  default: []
                  example:
                    - stg_23abec5b-100a-4261-9ee7-1effe68f0149
                  description: >-
                    Source tag ids to add. Adding a tag already present is a
                    no-op.
                  maxItems: 50
                  type: array
                  items:
                    type: string
                remove_tag_ids:
                  default: []
                  example:
                    - stg_23abec5b-100a-4261-9ee7-1effe68f0149
                  description: Source tag ids to remove.
                  maxItems: 50
                  type: array
                  items:
                    type: string
              required:
                - urls
      responses:
        '200':
          description: URL tags updated
          content:
            application/json:
              schema:
                type: object
                properties: {}
                description: URL tags updated
        '400':
          description: Response for status 400
          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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.