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

# Update account

> Updates account information.
 - An update can be made to any of the non-critical editable account properties only by root and admin users.
 - Critical account properties such as name, ID, and root email address cannot be changed with this request
 - To update *name*, see **/accounts/rename**
- To update *root_email*, see **/accounts/request-email-address-change**



## OpenAPI

````yaml /api-reference/endpoint/accounts/openapi.json patch /accounts
openapi: 3.0.3
info:
  title: quiva.ai Gateway
  description: >-
    API for managing accounts, users, authentication, and payments in the
    quiva.ai platform
  version: 1.0.0
  contact:
    name: quiva.ai Support
    url: https://app.quiva.ai
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Account Management
    description: Operations related to account creation, updating, and deletion
  - name: User Management
    description: Operations related to user creation, updating, and deletion
  - name: Authentication
    description: Operations related to authentication and session management
  - name: API Keys
    description: Operations related to API key management
  - name: Multi-Factor Authentication
    description: Operations related to MFA setup and verification
  - name: Payment
    description: Operations related to subscription and payment management
  - name: Mesh Nodes
    description: Operations related to mesh node management
paths:
  /accounts:
    patch:
      tags:
        - Account Management
      summary: Update account
      description: |-
        Updates account information.
         - An update can be made to any of the non-critical editable account properties only by root and admin users.
         - Critical account properties such as name, ID, and root email address cannot be changed with this request
         - To update *name*, see **/accounts/rename**
        - To update *root_email*, see **/accounts/request-email-address-change**
      operationId: updateAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccountRequest'
            example:
              country: US
              company_name: ACME Corporation Updated
              address: 456 New St, Anytown, USA
              website: https://new-acme.com
              phone_number: '+9876543210'
              region: us-east-1
              provider: aws
              cloud: true
              hub: false
      responses:
        '200':
          description: Account updated successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/AccountPublicInfo'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpdateAccountRequest:
      type: object
      properties:
        country:
          type: string
          description: Country
        company_name:
          type: string
          description: Company name
        address:
          type: string
          description: Address
        website:
          type: string
          description: Website
        phone_number:
          type: string
          description: Phone number
        onboarding_progress:
          type: object
          description: Onboarding progress
        region:
          type: string
          description: Region
        provider:
          type: string
          description: Provider
        cloud:
          type: boolean
          description: Cloud enabled
        hub:
          type: boolean
          description: Hub enabled
    AccountPublicInfo:
      type: object
      properties:
        name:
          type: string
          description: Account name (normalized)
        id:
          type: string
          description: Account unique identifier - 10 digits
        display_name:
          type: string
          description: Account display name
        root_email:
          type: string
          format: email
          description: Root user email address
        subscription_status:
          type: string
          description: Subscription status
          enum:
            - active
            - pending
            - cancelled
        subscription_plan:
          type: string
          description: Subscription plan
        emergency_credit:
          type: number
          format: float
          description: Emergency credit amount
        country:
          type: string
          description: Country
        company_name:
          type: string
          description: Company name
        address:
          type: string
          description: Address
        website:
          type: string
          description: Website
        phone_number:
          type: string
          description: Phone number
        scheduled_for_deletion:
          type: boolean
          description: Whether the account is scheduled for deletion
        deletion_date:
          type: string
          format: date-time
          description: >-
            If the account is scheduled for deletion, it will be deleted on this
            date
        region:
          type: string
          description: Region
        provider:
          type: string
          description: Provider
        bstier:
          type: integer
          description: BS tier
        cloud:
          type: boolean
          description: >-
            Cloud functionality enabled. It true, the user has access to
            quiva.ai Cloud
        hub:
          type: boolean
          description: >-
            Hub functionality enabled. It true, the user has access to quiva.ai
            Hub
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````