Skip to content

Move an account to another profile

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

Move an account to another profile with 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 has each field’s type.

Examples

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

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

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

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"'"}'
pnio integrations move-account "$ACCOUNT_ID" --profile-id "$PROFILE_ID"
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 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.

Type to search…

↑↓ navigate↵ selectEsc close