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

# Batch enable or disable proxy accounts

> Sets enabled status for multiple proxy accounts.



## OpenAPI

````yaml /openapi.json put /api/v1/teams/{team_id}/proxy_accounts/batch/status
openapi: 3.1.0
info:
  title: AnyIP.io API documentation
  description: API documentation
  version: 1.0.0
servers:
  - url: /
    description: ''
security:
  - apiHeader: []
tags:
  - name: V1.IpWhitelist
    description: Public API v1 — IP whitelist management
  - name: V1.ProxyAccount
    description: Public API v1 — proxy account provisioning and lifecycle
  - name: V1.ProxyProfile
    description: Public API v1 — proxy profile management
  - name: V1.Subscription
    description: Public API v1 — team subscription (read-only)
  - name: V1.Tag
    description: Public API v1 — tag management
  - name: V1.Traffic
    description: Public API v1 — traffic time series (read-only)
  - name: V1.Usage
    description: Public API v1 — quota usage (read-only)
paths:
  /api/v1/teams/{team_id}/proxy_accounts/batch/status:
    put:
      tags:
        - V1.ProxyAccount
      summary: Batch enable or disable proxy accounts
      description: Sets enabled status for multiple proxy accounts.
      operationId: public_v1_proxy_account_put_batch_status
      parameters:
        - name: team_id
          in: path
          description: Team identifier
          required: true
          deprecated: false
          schema:
            type: string
          style: simple
          explode: false
      requestBody:
        description: The updated V1.ProxyAccount resource
        content:
          application/json:
            schema:
              type: object
              properties:
                ids:
                  type: array
                  description: Document identifiers to enable or disable.
                  items:
                    type: string
                    pattern: ^[0-9a-fA-F]{24}$
                    example: 507f1f77bcf86cd799439011
                  minItems: 1
                  maxItems: 100
                  example:
                    - 507f1f77bcf86cd799439011
                enabled:
                  type: boolean
                  description: Target enabled state for every selected document.
                  example: true
              required:
                - ids
                - enabled
              additionalProperties: false
        required: true
      responses:
        '200':
          description: V1.ProxyAccount resource updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1.ProxyAccount'
          links: {}
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          links: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          links: {}
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          links: {}
        '422':
          description: An error occurred
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConstraintViolation'
          links: {}
components:
  schemas:
    V1.ProxyAccount:
      type: object
      description: Public API v1 — proxy account provisioning and lifecycle
      properties:
        id:
          readOnly: true
          type:
            - string
            - 'null'
        description:
          maxLength: 256
          type:
            - string
            - 'null'
        enabled:
          default: true
          type: boolean
        status:
          readOnly: true
          type:
            - string
            - 'null'
        is_active:
          readOnly: true
          type:
            - boolean
            - 'null'
        username:
          readOnly: true
          type:
            - string
            - 'null'
        password:
          minLength: 6
          pattern: ^([a-zA-Z0-9_]+)$
          type:
            - string
            - 'null'
        quota_bytes:
          type:
            - integer
            - 'null'
        consumption_bytes:
          readOnly: true
          type:
            - integer
            - 'null'
        last_activity_at:
          readOnly: true
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          readOnly: true
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          readOnly: true
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      description: A representation of common errors.
      properties:
        title:
          readOnly: true
          description: A short, human-readable summary of the problem.
          type:
            - string
            - 'null'
        detail:
          readOnly: true
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          type:
            - string
            - 'null'
        status:
          type:
            - integer
            - 'null'
          examples:
            - 404
          default: 400
        instance:
          readOnly: true
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem. It may or may not yield further information if
            dereferenced.
          type:
            - string
            - 'null'
        type:
          readOnly: true
          description: A URI reference that identifies the problem type
          type: string
    ConstraintViolation:
      type: object
      description: Unprocessable entity
      properties:
        status:
          default: 422
          type: integer
        violations:
          type: array
          items:
            type: object
            properties:
              propertyPath:
                type: string
                description: The property path of the violation
              message:
                type: string
                description: The message associated with the violation
              code:
                type: string
                description: The code of the violation
              hint:
                type: string
                description: An extra hint to understand the violation
              payload:
                type: object
                additionalProperties: true
                description: The serialized payload of the violation
            required:
              - propertyPath
              - message
        detail:
          readOnly: true
          type: string
        type:
          readOnly: true
          type: string
        title:
          readOnly: true
          type:
            - string
            - 'null'
        instance:
          readOnly: true
          type:
            - string
            - 'null'
  securitySchemes:
    apiHeader:
      type: apiKey
      description: Value for the Api-Key header parameter.
      name: Api-Key
      in: header

````