Create a new comment

post/documents/{objectTypeName}/{objectId}/comments
Internal-Use Only

Creates a new comment for the specified object type and object ID.

Request Samples

1

Response Samples

1No example avaliable

Path Parameters

NameTypeRequiredDescription
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.

Request Body

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"}
NameTypeRequiredDescription
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.

Responses

StatusMeaningDescription
201CreatedThe comment was successfully created.Headers
400Bad RequestPotential 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
404Not FoundThe object was not found or the user did not have permission to view it.Schema