Skip to main content
PUT

Update comment

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

Path

integer
required
Numeric id of the comment to update.

Body

string
Comment text (max 65535 characters). Empty string clears text to null.
string[]
Up to 10 items (integer ids and/or URLs) to replace attached media. When this key is present, attachments are re-synced from the new list (or cleared if the array is empty).

Errors

401 · 403 (not author) · 404 · 422 (e.g. all media entries failed to resolve) See Comments overview.