Discussions
/discussions/:discussionId/comments/:commentId
Changed onReplace a comment's text and mentions.
Only the author can edit. An author who no longer has asset.canManageDiscussions can no longer edit. The response is 204 with no body. updatedAt moves to the edit time when the stored text changes. An edit that leaves the text and mentions as they are changes nothing and keeps updatedAt. Edits replace mentions and notify no one.
Omitting mentions, or sending null, on a comment that has them is 409. Send the mentions again to keep them, or send mentions: [] to remove them. The same placeholder rules as create apply.
Requires the comments.write OAuth scope.
patch/v1/discussions/{discussionId}/comments/{commentId}
Request
- Base URLapi.air.inc (relative, and the document’s source URL is not known)
- Auth
- API key in header x-api-key and API key in header x-air-workspace-id
- or HTTP bearer and API key in header x-air-workspace-id
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Comment updated. No response body.
Changes
- info
endpoint added
- info