Update Comments

Add comment(s) to a discussion, or update existing comment(s). Comments to be updated are distinguished from comments to be added to the discussion by the presence of an id on the comment.

Path Params
string
required

The id of the discussion to which the comments are to be added or updated. To find discussion IDs, see Read Families, or Create Discussion to create a new discussion.

Body Params
discussions
array of objects
required
length between 1 and 1

Array containing exactly one discussion with comments to add or update.

discussions*
comments
array of objects
required
length between 1 and 1

Array containing exactly one comment to add or update.

comments*
string

The ID of the comment to update. Omit this field when creating a new comment. Include this field when updating an existing comment. To find comment IDs, see Read Comments.

string
required

The text content of the comment.

Headers
string
enum
required

Specifies the media type of the entity-body sent to the server in the request.

Allowed:
Responses
201

The creation of the comment was successful.

204

The update of the comment was successful.

404

The discussion for the comments was not found.

Language
Credentials
Bearer
Response
Click Try It! to start a request and see the response here!