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

# Update subaccount preferences

> Update subaccount preferences such as label or is_hidden. Permission: `subaccount:write`.



## OpenAPI

````yaml /openapi-account.json put /v4/account/subaccounts/{subAccountId}/preferences
openapi: 3.0.3
info:
  title: ProxyScrape Account API
  description: Account API — authenticate with the api-token header.
  version: 1.0.0
servers:
  - url: https://api.proxyscrape.com
    description: ProxyScrape API
security:
  - apiToken: []
tags:
  - name: API key management
    description: Create, list, update, regenerate, and revoke API keys
  - name: Subaccounts
    description: List subaccounts and manage preferences
  - name: Datacenter
    description: 'Datacenter shared and dedicated: overview, proxy list, usage, whitelist'
  - name: Residential
    description: 'Residential (bandwidth): overview, subusers, usage'
  - name: Residential unlimited
    description: 'Residential unlimited: overview, statistics, password'
  - name: SERP API
    description: 'SERP API: overview, subusers, search'
  - name: API ordering
    description: >-
      Place wallet-paid orders and read the wallet balance via the headless API
      ordering surface.
paths:
  /v4/account/subaccounts/{subAccountId}/preferences:
    put:
      tags:
        - Subaccounts
      summary: Update subaccount preferences
      description: >-
        Update subaccount preferences such as label or is_hidden. Permission:
        `subaccount:write`.
      operationId: updateSubaccountPreferences
      parameters:
        - name: subAccountId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                  minLength: 1
                  maxLength: 50
                  pattern: ^[a-zA-Z0-9_\-\s()]+$
                  description: >-
                    Alphanumeric characters, underscores, dashes, spaces, and
                    parentheses only.
                is_hidden:
                  type: boolean
      responses:
        '200':
          description: Preferences updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Subaccount preferences updated
                  data:
                    type: object
                    properties:
                      AccountID:
                        type: string
                        format: uuid
                      label:
                        type: string
                      is_hidden:
                        type: boolean
        '400':
          description: Validation error — label fails length or character constraints
        '401':
          description: Unauthorized
        '404':
          description: Subaccount not found
        '500':
          description: Internal server error — database write failed
      security:
        - apiToken: []
components:
  securitySchemes:
    apiToken:
      type: apiKey
      in: header
      name: api-token
      description: >-
        API key. Create and manage keys at /v4/account/api-keys or in the
        dashboard.

````