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

# Update Sub Account

> Update an existing sub-account under your main account.



## OpenAPI

````yaml patch /go-api/v1/subAccount/edit
openapi: 3.0.1
info:
  title: GoProxy API Documentation
  description: ''
  version: 1.0.0
servers: []
security: []
tags: []
paths:
  /go-api/v1/subAccount/edit:
    patch:
      tags: []
      summary: Update Sub Account
      description: Update an existing sub-account under your main account.
      parameters:
        - name: apiKey
          in: header
          description: The apiKey is used to authenticate your account.
          required: true
          example: ''
          schema:
            type: string
            title: apiKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubAccountEditRequestBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubAccountEditResponseModel'
          headers: {}
      deprecated: false
      security: []
components:
  schemas:
    SubAccountEditRequestBody:
      properties:
        username:
          type: string
          title: username
          description: >-
            The username of the sub-account you want to update. It must be
            between 6 and 10 characters or digits.
        password:
          type: string
          title: password
          description: >-
            The new password for the sub-account. It must be between 6 and 8
            characters, containing only letters or digits.
        trafficLimit:
          type: string
          title: trafficLimit
          description: >-
            The new traffic limit for the sub-account in MB. To set no limit,
            omit this field or leave it blank.
        remarks:
          type: string
          title: remarks
          description: Optional remarks or description for the sub-account.
        proxyType:
          type: string
          title: proxyType
          description: >-
            The proxy type for the sub-account. 

            Use: 1 for Rotating Residential, 2 for Rotating Mobile, 3 for
            Rotating Datacenter.
      type: object
      required:
        - username
        - proxyType
      title: SubAccountEditRequestBody
    SubAccountEditResponseModel:
      type: string
      title: SubAccountEditResponseModel
      example: Success

````