Posts

Update Post Attachments

PUThttps://tryferra.co/api/public/v1/posts/{id}/attachments

Replaces the attachments (media) of the post with the given list. The list replaces all the existing attachments, so pass the full list the post should have; an empty list removes them all. Only the attachments of the main post change: the attachments of its comments, the content, the settings and the publish date are untouched, so a running publishing workflow is not restarted. The post is re-validated with the new attachments. Works only on not-yet-published posts (scheduled or draft).

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Parameters

idstringrequired

path · Post ID

Body

attachmentsobject[]required

The full new list of attachments of the post. An empty array removes all the attachments.

idstringrequired
pathstringrequired
thumbnailTimestampnumber

Milliseconds into the video to use as the cover/thumbnail frame. Supported by Instagram, Instagram Standalone, TikTok Business, and TikTok (Direct Post only, not the UPLOAD/inbox flow); other providers ignore it. For TikTok, in our testing the cover was applied only to public posts (privacy_level PUBLIC_TO_EVERYONE).

Request

curl -X PUT 'https://tryferra.co/api/public/v1/posts/{id}/attachments' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
  "attachments": [
    {
      "id": "img-1",
      "path": "https://tryferra.co/uploads/photo.jpg"
    }
  ]
}'

Responses

200Post attachments updated successfully
{
  "postId": "post-123",
  "publishDate": "2026-08-01T10:00:00"
}
400The id belongs to a comment (pass the root post id), the post is already published or its publish time passed, an attachment is invalid, or the post failed validation with the new attachments (for example a platform that requires at least one media)
404Post not found

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).