Skip to main content
PUT
/
comments
/
{comment}
curl -X PUT "https://postsyncer.com/api/v1/comments/456" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"Updated text"}'

Update comment

Only the author (user_id matches token user) may update. Allowed JSON fields: content and/or media_urls (same URL import rules as create comment). Omit a field to leave it unchanged. Send media_urls: [] to detach all media from the comment.

Path

comment
integer
required
Numeric id of the comment to update.

Body

content
string
Comment text (max 65535 characters). Empty string clears text to null.
media_urls
string[]
Up to 10 URLs to replace attached media. When this key is present, media is re-synced to the imported files (or cleared if the array is empty).
curl -X PUT "https://postsyncer.com/api/v1/comments/456" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"Updated text"}'

Errors

401 · 403 (not author) · 404 · 422 (e.g. all media_urls failed to import) See Comments overview.