Project Survey Comments Details
Get All Project Survey Comments Details
This endpoint returns a list of all questions with survey comments, with a count of how many survey comments per question and additional info about the pinned comment (if there is one).
GET /api/v2/projects/{project_id}/survey/comments-details/
GET /api/v2/projects/1/survey/comments-details/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"Q101": {
"comment_count": 2,
"pinned_comment": {
"author": {
"id": 1,
"email": "admin@example.com",
"first_name": "Admin",
"last_name": "Testerton",
"is_active": true,
"role": {
"id": "UR4",
"name": "Administrator"
}
},
"created": "2022-09-15T16:14:37.256783-04:00",
"id": 7,
"locked": false,
"pinned": true,
"retained": false,
"project": 1,
"question": "Q101",
"text": "another",
"updated": "2022-09-15T16:14:37.256814-04:00"
}
},
"Q105": {
"comment_count": 1,
"pinned_comment": "null"
}
}