Prompt Answer Comments
Retrieves a paginated list of comments for the specified prompt answer, optionally filtered and sorted.
Bearer authentication with JWT
The object identifier of the prompt answer.
The page number to retrieve.
The number of items per page.
Optional search text to prompt comments.
The sorting option for the results.
Whether to sort in descending order.
trueOK
Forbidden
GET /projects/{projectIdentifier}/prompt-answer/{promptAnswerObjectIdentifier}/comments HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"comment": "text",
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:54:32.848Z",
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
]Creates a new comment for the specified prompt answer.
Bearer authentication with JWT
The object identifier of the prompt answer.
OK
Bad Request
Forbidden
POST /projects/{projectIdentifier}/prompt-answer/{promptAnswerObjectIdentifier}/comments HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"comment": "text"
}{
"comment": "text",
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:54:32.848Z",
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Retrieves a comment by its object identifier.
Bearer authentication with JWT
The unique identifier of the comment.
OK
Forbidden
Not Found
GET /projects/{projectIdentifier}/prompt-answer/{promptAnswerObjectIdentifier}/comments/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"comment": "text",
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:54:32.848Z",
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Updates a comment by its object identifier.
Bearer authentication with JWT
The unique identifier of the comment to update.
OK
Bad Request
Forbidden
Not Found
PUT /projects/{projectIdentifier}/prompt-answer/{promptAnswerObjectIdentifier}/comments/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"comment": "text"
}{
"comment": "text",
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T03:54:32.848Z",
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Deletes a comment by its object identifier.
Bearer authentication with JWT
The unique identifier of the comment to delete.
No Content
Forbidden
Not Found
DELETE /projects/{projectIdentifier}/prompt-answer/{promptAnswerObjectIdentifier}/comments/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated