---
title: "Point this target at another account of the same network"
method: PATCH
path: "/posts/{id}/targets/{targetId}/account"
tags: ["Targets"]
---

# Point this target at another account of the same network

`PATCH /posts/{id}/targets/{targetId}/account`

## Request

- Base URL: `https://preflight.social/v1`
- URL: `https://preflight.social/v1/posts/{id}/targets/{targetId}/account`
- Auth: HTTP bearer

## Request body

- object
  - `accountId` string, uuid, required

## Response `200`

Moved.

- Target
  - `id` string, uuid
  - `platform` 'youtube' | 'tiktok' | 'instagram' | 'facebook' | 'threads' | 'twitter' | 'linkedin' | 'pinterest' | 'bluesky' | 'mastodon' | 'telegram' | 'discord' | 'tumblr': A network's name. twitter (X) is text-only and not offered to new accounts.
  - `accountId` string, uuid
  - `status` 'pending' | 'publishing' | 'published' | 'failed' | 'skipped'
  - `remoteId` string, nullable
  - `remoteUrl` string, uri, nullable
  - `publishedAt` string, date-time, nullable
  - `error` string, nullable
  - `errorCode` string, nullable
  - `errorPermanent` boolean: Retrying cannot succeed without changing something.
  - `attempts` integer
  - `nextAttemptAt` string, date-time, nullable
  - `canEditRemote` boolean
  - `canDeleteRemote` boolean
  - `options` object
  - `metrics` object, nullable: The latest figures, with fetchedAt.

## Other responses

- `400`: The body did not validate (invalid_request; field says which).
- `401`: Missing, expired or unrecognised key.
- `404`: No such post, file or account in this workspace.
- `409`: Not possible in the current state, or the network does not allow it.

---

[API](https://skmtc.dev/preflight/apis/preflight-api.md) · [All operations](https://skmtc.dev/preflight/apis/preflight-api/llms.txt) · [OpenAPI document](https://skmtc.dev/preflight/apis/preflight-api/revisions/45ae7944ce71?raw)
