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

# Move everything attached to another account onto this one, then delete it. Used when a reconnection created a second account for the same real profile.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/accounts/{id}/replace
openapi: 3.0.0
info:
  title: PlugKit API
  description: >-
    One API to publish, schedule and message across Instagram, WhatsApp, TikTok,
    Telegram, YouTube and X.
  version: 1.0.0
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/accounts/{id}/replace:
    post:
      tags:
        - accounts
      summary: >-
        Move everything attached to another account onto this one, then delete
        it. Used when a reconnection created a second account for the same real
        profile.
      operationId: AccountsController_replace
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplaceAccountDto'
      responses:
        '200':
          description: ''
      security:
        - api-key: []
components:
  schemas:
    ReplaceAccountDto:
      type: object
      properties:
        accountId:
          type: string
          description: >-
            Account to absorb: its posts and conversations move onto the account
            in the path, then it is deleted.
      required:
        - accountId
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: sk_...
      type: http

````