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

# Atualizar Conta

> Atualiza os dados de uma conta existente



## OpenAPI

````yaml PUT /api/v1/Admin/Account/{id}
openapi: 3.0.4
info:
  title: MessageFy API
  description: >-
    API de mensageria multi-canal do MessageFy. Envie e receba mensagens via
    WhatsApp, HTTP, Telegram e outros canais com uma API unificada.
  version: v1
servers:
  - url: https://api-dev.messagefy.io
security:
  - apiKey: []
tags:
  - name: Me
  - name: Configure
  - name: DeleteMessage
  - name: EditMessage
  - name: MessageOutbox
  - name: SearchMessage
  - name: SendMessage
  - name: Account
  - name: ApiKey
  - name: Channel
  - name: Outbox
paths:
  /api/v1/Admin/Account/{id}:
    put:
      tags:
        - Account
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json; v=1.0:
            schema:
              $ref: '#/components/schemas/UpdateAccountCommand'
          text/json; v=1.0:
            schema:
              $ref: '#/components/schemas/UpdateAccountCommand'
          application/*+json; v=1.0:
            schema:
              $ref: '#/components/schemas/UpdateAccountCommand'
        required: true
      responses:
        '200':
          description: OK
          content:
            text/plain; v=1.0:
              schema:
                $ref: '#/components/schemas/AccountDTO'
            application/json; v=1.0:
              schema:
                $ref: '#/components/schemas/AccountDTO'
            text/json; v=1.0:
              schema:
                $ref: '#/components/schemas/AccountDTO'
        '400':
          description: Bad Request
          content:
            text/plain; v=1.0:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json; v=1.0:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json; v=1.0:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            text/plain; v=1.0:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json; v=1.0:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json; v=1.0:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    UpdateAccountCommand:
      type: object
      properties:
        organizationId:
          type: string
          format: uuid
          nullable: true
        accountId:
          type: string
          format: uuid
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        statusId:
          type: integer
          format: int32
    AccountDTO:
      type: object
      properties:
        accountId:
          type: string
          format: uuid
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        status:
          $ref: '#/components/schemas/AccountStatusDTO'
        organization:
          $ref: '#/components/schemas/OrganizationDTO'
        channelCount:
          type: integer
          format: int32
        deviceRunningCount:
          type: integer
          format: int32
        channelConnectedCount:
          type: integer
          format: int32
        financialManagerCount:
          type: integer
          format: int32
        apiKeyCount:
          type: integer
          format: int32
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
    AccountStatusDTO:
      type: object
      properties:
        accountStatusId:
          type: integer
          format: int32
        name:
          type: string
        icon:
          type: string
        description:
          type: string
        canManageChildObjects:
          type: boolean
        canSendAndReceiveMessage:
          type: boolean
      nullable: true
    OrganizationDTO:
      type: object
      properties:
        organizationId:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
        status:
          $ref: '#/components/schemas/OrganizationStatusDTO'
        accountCount:
          type: integer
          format: int32
        channelCount:
          type: integer
          format: int32
        deviceRunningCount:
          type: integer
          format: int32
        channelConnectedCount:
          type: integer
          format: int32
        apiKeyCount:
          type: integer
          format: int32
        createdAt:
          type: string
          format: date-time
      nullable: true
    OrganizationStatusDTO:
      type: object
      properties:
        organizationStatusId:
          type: integer
          format: int32
        name:
          type: string
        icon:
          type: string
        description:
          type: string
        canManageChildObjects:
          type: boolean
        canSendAndReceiveMessage:
          type: boolean
      nullable: true
  securitySchemes:
    apiKey:
      type: apiKey
      description: >-
        Chave de API fornecida pelo painel administrativo do MessageFy. Enviada
        no header de cada requisição. O gateway APISIX valida a chave e injeta
        os headers X-Consumer-* automaticamente.
      name: X-API-KEY
      in: header

````