---
title: "Move an account to another profile"
description: "PubNio API integrations.moveAccount: move an account to another profile. Request fields, examples in five clients, errors, and idempotency."
---

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

# Move an account to another profile

Move an account to another profile with [`POST /api/v1/integrations/accounts/{accountId}/profile`](https://pubnio.com/api/v1/docs#tag/integrations/POST/api/v1/integrations/accounts/{accountId}/profile). Requires a signed-in workspace owner, in the web app or the CLI; API keys are not accepted and MCP cannot call it.

## Request

The account ID, credentials, history, and selected state do not change.

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `accountId`   | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

| Body field  | Type | Required |
| ----------- | ---- | -------- |
| `profileId` | UUID | Yes      |

## Response

- HTTP 200: `ProviderAccount` with `id`, `profileId`, `connectionId`, `provider`, `accountKind`, `parentAccountId`, `name`, `platformUserId`, `avatarUrl`, `enabled`, `available`, `details`, `readiness`, `capabilities`.
  - `provider`: `bluesky`, `facebook`, `instagram`, `linkedin`, `pinterest`, `reddit`, `snapchat`, `tiktok`, `threads`, `x`, `youtube`, `google_business`, `meta_ads`, `google_ads`, `reddit_ads`, `pinterest_ads`, `tiktok_ads`, `linkedin_ads`, `snapchat_ads`, `amazon_ads`, `openai_ads`
  - `accountKind`: `social_page`, `social_account`, `social_board`, `social_channel`, `ad_account`

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const account = await workspace.accounts.move(accountId, { profileId });
```

Create this client with a signed-in person's `accessToken`, not an `apiKey`.

### Python

The Python SDK authenticates with a workspace API key, which this operation does not accept, so it has no method for it.

### cURL

```sh
curl -X POST "https://pubnio.com/api/v1/integrations/accounts/$ACCOUNT_ID/profile?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"profileId":"'"$PROFILE_ID"'"}'
```

### CLI

```sh
pnio integrations move-account "$ACCOUNT_ID" --profile-id "$PROFILE_ID"
```

### MCP execute

```js
async () => {
  const accountId = "<accountId>";
  const profileId = "<profileId>";
  const response = await codemode.request({
    method: "POST",
    path: `/api/v1/integrations/accounts/${accountId}/profile`,
    query: { workspaceId: codemode.workspaceId },
    body: { profileId: profileId },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

No key, so a retried `POST` is not deduplicated. Read the current state before you retry.

## Limits

- API keys and MCP cannot call it. A signed-in person runs it from the CLI after `pnio auth login` or in the web app.

## Related

- [Connected accounts operations](https://pubnio.com/docs/reference/#connected-accounts)
- [Accounts and connections](https://pubnio.com/docs/accounts/)

Source: https://pubnio.com/docs/reference/integrations-move-account/index.mdx
