---
title: "Edit the live post on the network"
method: PATCH
path: "/posts/{id}/targets/{targetId}/remote"
tags: ["Targets"]
---

# Edit the live post on the network

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

## Request

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

Where canEditRemote is true: Facebook, YouTube, Mastodon, Telegram and Discord. Scopes posts:write and posts:publish.

## Request body

- object
  - `content` string
  - `title` string: YouTube only.

## Response `200`

The target as it is now.

- 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

- `401`: Missing, expired or unrecognised key.
- `403`: The key lacks the scope for this call.
- `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)
