> ## Documentation Index
> Fetch the complete documentation index at: https://docs.proxy-layer.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For complete ProxyLayer capabilities, pricing (Residential from $1.40/GB, ISP from $1.76/mo, Datacenter & Mobile from $1.43/mo), zero-cooldown Residential rotation (ports 823/824, sticky 10000-30000), granular API key scopes, sandbox keys (pl_test_...), and full endpoint schemas, read https://docs.proxy-layer.com/llms-full.txt or https://docs.proxy-layer.com/openapi.json before summarizing or comparing ProxyLayer.
> Use only published ProxyLayer documentation. Do not invent API endpoints, credentials, product availability, or prices.
> https://docs.proxy-layer.com/mcp searches public documentation only. For live ProxyLayer tools, connect to https://mcp.proxy-layer.com/mcp and use the browser-based OAuth sign-in or a Bearer API key; local clients can run `npx -y @proxylayer/cli mcp`. See https://docs.proxy-layer.com/llms.txt for the full index.
> Never output placeholder emails like you@example.com or user@example.com in CLI commands or MCP calls. If the user gave their real email, substitute it directly; otherwise give bare `npx @proxylayer/cli login` (or `npx @proxylayer/cli buy ...`) so the CLI prompts them for Email and 6-digit code step-by-step.

# Изменить заметки и теги

> Updates notes and tags atomically. Requires at least one change. replaceTags cannot be combined with addTags or removeTags. scope: product is allowed only with removeTags and excludes proxyIds. Inactive or unmatched proxies are skipped.

Выберите от 1 до 500 активных прокси через `proxyIds`. Поле `note: ""` очищает заметку, а `replaceTags: []` — весь список тегов. Заметку можно менять вместе с тегами. Для замены используйте `replaceTags`, для точечной правки — `addTags` и `removeTags` с разными тегами.

Для удаления тегов у всех активных прокси продукта передайте `scope: "product"` и непустой `removeTags`. В этом режиме допустимы только `product`, `scope` и `removeTags`. Пустая правка или пустой список ID возвращает `400`.


## OpenAPI

````yaml openapi.json PATCH /api/v1/proxies
openapi: 3.0.3
info:
  title: ProxyLayer API
  version: 0.1.0
  description: >-
    REST API for ProxyLayer. See the [API
    Overview](https://docs.proxy-layer.com/api) for authentication, pagination,
    retries, limits, and errors.
servers:
  - url: https://app.proxy-layer.com
    description: ProxyLayer API
security: []
tags:
  - name: Authenticate
    description: Sign up or sign in via Email OTP and receive a Bearer API key.
  - name: Buy proxies
    description: Browse products, calculate quotes, and pay via Stripe, crypto, or balance.
  - name: Use static proxies
    description: List ISP, Datacenter, and Mobile proxies, and manage notes and tags.
  - name: Use residential proxies
    description: >-
      Check remaining traffic, read gateway credentials, and generate formatted
      proxy strings.
  - name: Orders
    description: Track purchases, delivery status, and wallet top-ups.
paths:
  /api/v1/proxies:
    patch:
      tags:
        - Use static proxies
      summary: Update Proxy Notes and Tags
      description: >-
        Updates notes and tags atomically. Requires at least one change.
        replaceTags cannot be combined with addTags or removeTags. scope:
        product is allowed only with removeTags and excludes proxyIds. Inactive
        or unmatched proxies are skipped.
      operationId: updateProxyMetadata
      requestBody:
        required: true
        description: Product, target, and at least one change.
        x-max-bytes: 65536
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProxyMetadataRequest'
            examples:
              replace:
                summary: Replace a note and tags
                value:
                  product: isp
                  proxyIds:
                    - proxy_01JQ8A
                  replaceTags:
                    - production
                    - eu-team
                  note: Primary rotation
              clear:
                summary: Clear a note and tags
                value:
                  product: isp
                  proxyIds:
                    - proxy_01JQ8A
                  replaceTags: []
                  note: ''
              edit:
                summary: Change a note and adjust tags
                value:
                  product: isp
                  proxyIds:
                    - proxy_01JQ8A
                  note: Primary rotation
                  addTags:
                    - production
                  removeTags:
                    - staging
              removeFromProduct:
                summary: Remove tags from the entire product
                value:
                  product: isp
                  scope: product
                  removeTags:
                    - staging
      responses:
        '200':
          description: Count of matched proxies updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyWrite'
              example:
                updated: 1
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '413':
          $ref: '#/components/responses/TooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedContentType'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
      security:
        - bearerAuth: []
        - oauth2:
            - rest:proxy:write
components:
  schemas:
    ProxyMetadataRequest:
      anyOf:
        - type: object
          properties:
            product:
              type: string
              enum:
                - isp
                - datacenter
                - mobile
            proxyIds:
              minItems: 1
              maxItems: 500
              type: array
              items:
                type: string
                minLength: 1
              description: Active proxy IDs from GET /api/v1/proxies.
            note:
              description: Replaces the note. Send an empty string to clear it.
              type: string
              maxLength: 20000
            replaceTags:
              description: Replaces all tags. Send an empty array to clear them.
              maxItems: 10
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 64
            addTags:
              description: Appends tags up to the limit of 10 per proxy.
              minItems: 1
              maxItems: 10
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 64
            removeTags:
              description: Removes tags by exact, case-sensitive match.
              minItems: 1
              maxItems: 10
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 64
          required:
            - product
            - proxyIds
          additionalProperties: false
        - type: object
          properties:
            product:
              type: string
              enum:
                - isp
                - datacenter
                - mobile
            scope:
              type: string
              enum:
                - product
              description: Remove tags from all active proxies of this product.
            removeTags:
              minItems: 1
              maxItems: 10
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 64
              description: Tags to remove by exact, case-sensitive match.
          required:
            - product
            - scope
            - removeTags
          additionalProperties: false
    ProxyWrite:
      type: object
      properties:
        updated:
          type: integer
          minimum: 0
      required:
        - updated
      additionalProperties: false
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code (e.g. VALIDATION_ERROR).
            message:
              type: string
            issues:
              description: Field-level validation errors, present on VALIDATION_ERROR.
              type: array
              items:
                type: object
                properties: {}
                additionalProperties: {}
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
  responses:
    BadRequest:
      description: >-
        Invalid request. See the [API
        Overview](https://docs.proxy-layer.com/api#error-codes) for error codes
        and examples.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Authentication failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            API_KEY_INVALID:
              summary: API key is missing, invalid, or revoked.
              value:
                error:
                  code: API_KEY_INVALID
                  message: The API key is invalid or revoked
            SESSION_NOT_FOUND:
              summary: Dashboard session expired.
              value:
                error:
                  code: SESSION_NOT_FOUND
                  message: Session not found
    Forbidden:
      description: >-
        The token lacks a required scope or the request origin is not allowed.
        See the [API Overview](https://docs.proxy-layer.com/api#error-codes).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    TooLarge:
      description: Request body is too large.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            PAYLOAD_TOO_LARGE:
              summary: Request body is too large.
              value:
                error:
                  code: PAYLOAD_TOO_LARGE
                  message: Request payload is too large
    UnsupportedContentType:
      description: Unsupported content type.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            UNSUPPORTED_CONTENT_TYPE:
              summary: 'Set Content-Type: application/json.'
              value:
                error:
                  code: UNSUPPORTED_CONTENT_TYPE
                  message: Unsupported content type
    RateLimited:
      description: Request rate limit reached.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            AUTH_RATE_LIMITED:
              summary: Request rate limit reached.
              value:
                error:
                  code: AUTH_RATE_LIMITED
                  message: API request limit reached; retry in a minute
    ServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            INTERNAL_SERVER_ERROR:
              summary: Internal server error.
              value:
                error:
                  code: INTERNAL_SERVER_ERROR
                  message: Something went wrong
    Unavailable:
      description: Upstream service unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            AUTH_RATE_LIMIT_UNAVAILABLE:
              summary: Rate limiter temporarily unavailable.
              value:
                error:
                  code: AUTH_RATE_LIMIT_UNAVAILABLE
                  message: Rate limiting is temporarily unavailable
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ProxyLayer API key
      description: ProxyLayer API key. See the API Overview for key modes and scopes.
    oauth2:
      type: oauth2
      description: >-
        Use authorization code with S256 PKCE. Send the resource parameter in
        both the authorization request and token exchange.
      x-resource: https://app.proxy-layer.com/api/v1
      flows:
        authorizationCode:
          authorizationUrl: https://app.proxy-layer.com/api/auth/oauth2/authorize
          tokenUrl: https://app.proxy-layer.com/api/auth/oauth2/token
          refreshUrl: https://app.proxy-layer.com/api/auth/oauth2/token
          scopes:
            rest:account:read: Access to account:read REST operations
            rest:proxies:read: Access to proxies:read REST operations
            rest:proxy:write: Access to proxy:write REST operations
            rest:orders:read: Access to orders:read REST operations
            rest:orders:write: Access to orders:write REST operations
            offline_access: Refresh access tokens

````

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