infipostdocs
Posts

Update Post Attachments

PUT /posts/{id}/attachments — Infipost Public API

PUT/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).

cURL
curl --request PUT \
  --url 'https://api.infipost.asia/public/v1/posts/{id}/attachments' \
  --header 'Authorization: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "attachments": [
    {
      "id": "img-1",
      "path": "https://uploads.postiz.com/photo.jpg"
    }
  ]
}'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Parameters

idstring · pathrequired

Post ID

Body

attachmentsarray[]required

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

Show child attributes
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).

Response

Post attachments updated successfully

application/json
{
  "postId": "post-123",
  "publishDate": "2026-08-01T10:00:00"
}
postIdstring
publishDatestring