Posts
Edit a post
PATCH
https://postifuse.com/v1/posts/{id}Edits a draft or a scheduled post. Send only what changes. Preflight runs again on the new version.
curl --request PATCH \
--url 'https://postifuse.com/v1/posts/id_1' \
--header 'Authorization: Bearer pf_live_…' \
--header 'Idempotency-Key: update-post-1' \
--header 'Content-Type: application/json' \
--data '{
"publish_at": "2027-01-09T08:00:00Z"
}'
const res = await fetch("https://postifuse.com/v1/posts/id_1", {
method: "PATCH",
headers: {
"Authorization": "Bearer pf_live_…",
"Idempotency-Key": "update-post-1",
"Content-Type": "application/json"
},
body: JSON.stringify({
"publish_at": "2027-01-09T08:00:00Z"
}),
});
const data = await res.json();
import requests
res = requests.patch(
"https://postifuse.com/v1/posts/id_1",
headers={"Authorization": "Bearer pf_live_…", "Idempotency-Key": "update-post-1"},
json={
"publish_at": "2027-01-09T08:00:00Z"
},
)
print(res.json())
{
"id": "pst_42",
"status": "scheduled",
"publish_at": "2027-01-09T08:00:00Z"
}
{
"error": "workspace_not_active",
"message": "The workspace for this key is not active yet.",
"docs": "https://postifuse.com/docs/errors/"
}
Headers
AuthorizationstringrequiredBearer followed by a workspace key, a profile key or an OAuth token. See authentication.
Example Bearer pf_live_…
Idempotency-KeystringrequiredAny unique string. The same key within 24 h returns the same result and posts nothing twice.
Path parameters
idstringrequiredThe post id.
Body application/json
accountsarray<string>New target accounts, all in the same profile.
textstringNew text.
mediaarray<string>New media ids.
publishstringnow publishes at once.
One of now
publish_atstring<date-time>New time, ISO 8601 UTC.
Example 2027-01-09T08:00:00Z
overridesobjectPer-network text, YouTube title, or X thread.
Show 3 child attributes (per network)
textstringtitlestringthreadbooleanResponse
200The post
403Workspace not active