question-answers

Update Question Answer

POST
Updates a question-answer.

Request

This endpoint expects an object.
id
stringRequired
The question-answer's ID.
access_level
enumOptional
Allowed values: externalinternalprivatepublicrestricted
answer
stringOptional
Updated answer of the question-answer object, or unchanged if not provided.
applies_to_articles
objectOptional
applies_to_parts
objectOptional
owned_by
objectOptional
question
stringOptional
Updated question of the question-answer object, or unchanged if not provided.
shared_with
objectOptional
sources
objectOptional
status
enumOptional
Status of the question answer.
Allowed values: archiveddraftpublishedreview_needed
suggested_answer
stringOptional

Updated suggested_answer of the question-answer object, or unchanged if not provided.

suggested_for_deletion
booleanOptional

Updated suggested_for_deletion of the question-answer object, or unchanged if not provided.

tags
objectOptional
topic
stringOptional
Updated topic of the question-answer object, or unchanged if not provided.
verified
booleanOptional
Updates whether the question-answer was verified by a user or not.

Response

This endpoint returns an object
question_answer
object
POST
1curl -X POST https://api.devrev.ai/question-answers.update \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "id"
6}'
200
Successful
1{
2 "question_answer": {
3 "id": "id",
4 "answer": "answer",
5 "created_date": "2023-01-01T12:00:00Z",
6 "display_id": "display_id",
7 "modified_date": "2023-01-01T12:00:00Z",
8 "question": "question",
9 "suggested_answer": "suggested_answer",
10 "suggested_for_deletion": true,
11 "topic": "topic",
12 "verified": true
13 }
14}