Create a new comment
post/documents/{objectTypeName}/{objectId}/comments
Creates a new comment for the specified object type and object ID.
Name | Type | Required | Description |
---|---|---|---|
objectId | string | true | The ID of the object to which to post the comment. |
objectTypeName | string | true | The name of the object type to which the object belongs. |
The comment was created.
Additional text on an internal document. During an Update operation, all properties of a comment are read-only except the category. This is for security and audit purposes to keep historical data accurate.
Example:
{"$ref":"#/components/examples/commentExample"}
Name | Type | Required | Description |
---|---|---|---|
id | integer<int64> | false | The unique identifier for the comment. |
category | string | false | The category of the comment. |
author | Comment Author | false | Information about an author of a comment. |
createDate | string<date-time> | false | The date on which the comment was created. |
lastUpdatedAt | string<date-time> | false | The date on which the comment was updated. |
lastUpdatedBy | string | false | The user who last updated the comment. |
detail | string | false | Text of the comment. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | The comment was successfully created. | Headers | |
400 | Bad Request | Potential reasons for a 400 error: -The objectTypeName was null or empty. -The ID was null or empty. -The comment was null. -The comment detail was empty. The error message that is returned clarifies the reason for the 400 error. | Schema | |
404 | Not Found | The object was not found or the user did not have permission to view it. | Schema |