Update Post Attachments
PUT /posts/{id}/attachments — Infipost Public API
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 --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 · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Parameters
idstring · pathrequiredPost ID
Body
attachmentsarray[]requiredThe full new list of attachments of the post. An empty array removes all the attachments.
Show child attributes
idstringrequiredpathstringrequiredthumbnailTimestampnumberMilliseconds 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
{
"postId": "post-123",
"publishDate": "2026-08-01T10:00:00"
}postIdstringpublishDatestringThe 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)
Post not found