This route creates a new comment for a specified entity (currently supporting anomalies). It ensures that the user has the appropriate permissions to create comments for the target entity.
Send a POST request to /comments with the comment data in the request body.
The request will fail if:
Only authenticated users with manager-level permissions can create comments.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Content type, must be "application/json".
application/json Session token used for authenticating the request.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"
Details required to add a comment
The comment has been created