# Update third party account details

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/exports/accounts/third-party:
    put:
      summary: Update third party account details
      deprecated: false
      description: >
        This endpoint allows you to update an existing third-party account used
        for exporting mailboxes.


        | Name      | Type    | Description |

        |-----------|---------|-------------|

        | `email`   | `string` | Email of the third-party account. |

        | `password` | `string` | New password for the third-party account. |

        | `app`     | `string` | The third-party app associated with the
        account. |

        | `accountId`     | `string` | Target a specific account when multiple
        accounts of the same app exist. Optional but recommended when
        multi-account. |


        ## Example Request


        ```json

        {
            "email": "user@example.com",
            "password": "newsecurepassword",
            "app": "INSTANTLY",
             "accountId": "3f9c2a7e-6d14-4b8a-9f2e-1c7d5e8b4a91"
        }
      tags:
        - export
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: ' x-service-provider'
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                password:
                  type: string
                app:
                  type: string
                accountId:
                  type: string
                  description: >
                    Target a specific account when multiple accounts of the same
                    app exist. Optional but recommended when multi-account.
              required:
                - email
                - password
                - app
              x-apidog-orders:
                - email
                - password
                - app
                - accountId
            example:
              email: user@example.com
              password: newsecurepassword
              app: INSTANTLY
              accountId: 3f9c2a7e-6d14-4b8a-9f2e-1c7d5e8b4a91
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: 'null'
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: 'null'
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
          headers: {}
          x-apidog-name: Invalid Credentials
        '422':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: 'null'
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
              example:
                status: 422
                message: >-
                  Multiple <APP> accounts exist for this workspace —
                  <accountId|thirdPartyAccountId> is required.
                data: null
          headers: {}
          x-apidog-name: Unprocessable Entity
      security: []
      x-apidog-folder: export
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13490787-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
