question-answers

List Question Answers Post

POST
Lists a collection of question-answers.

Request

This endpoint expects an object.
applies_to_articles
list of stringsOptional
Filters for question-answer belonging to any of the provided articles.
applies_to_parts
list of stringsOptional
Filters for question-answer belonging to any of the provided parts.
created_by
list of stringsOptional
Filters for question-answers created by any of the provided users.
cursor
stringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
limit
integerOptional
The maximum number of question-answers to return. The default is '50'.
mode
enumOptional
The iteration mode to use. If "after", then entries after the provided cursor will be returned, or if no cursor is provided, then from the beginning. If "before", then entries before the provided cursor will be returned, or if no cursor is provided, then from the end. Entries will always be returned in the specified sort-by order.
Allowed values: afterbefore
owned_by
list of stringsOptional
Filters for question-answers owned by any of the provided users.

Response

This endpoint returns an object
question_answers
list of objects
The question-answers entries matching the request.
total
integer
Total number of question-answer items for the request.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
POST
1curl -X POST https://api.devrev.ai/question-answers.list \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "question_answers": [
3 {
4 "id": "id",
5 "answer": "answer",
6 "created_date": "2023-01-01T12:00:00Z",
7 "display_id": "display_id",
8 "modified_date": "2023-01-01T12:00:00Z",
9 "question": "question",
10 "suggested_answer": "suggested_answer",
11 "suggested_for_deletion": true,
12 "topic": "topic",
13 "verified": true
14 }
15 ],
16 "total": 1,
17 "next_cursor": "next_cursor",
18 "prev_cursor": "prev_cursor"
19}