Answers
Update Answer
Update an existing user-generated Answer.
post/rest/api/v1/editanswer
Query parameters
localestring
The client's preferred locale in rfc5646 format (e.g. en, ja, pt-BR). If omitted, the Accept-Language will be used. If not present or not supported, defaults to the closest match or en.
Headers
X-Glean-ActAsstring email
Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).
X-Glean-Auth-Typestring
Auth type being used to access the endpoint (should be non-empty only for global tokens).
Request body
Example request
{
"id": 3,
"docId": "ANSWERS_answer_3",
"question": "Why is the sky blue?",
"bodyText": "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
"audienceFilters": [
{
"fieldName": "type",
"values": [
{
"value": "Spreadsheet",
"relationType": "EQUALS"
},
{
"value": "Presentation",
"relationType": "EQUALS"
}
]
}
],
"addedRoles": [
{
"person": {
"name": "George Clooney",
"obfuscatedId": "abc123"
}
}
],
"removedRoles": [
{
"person": {
"name": "George Clooney",
"obfuscatedId": "abc123"
}
}
],
"roles": [
{
"person": {
"name": "George Clooney",
"obfuscatedId": "abc123"
}
}
],
"combinedAnswerText": {
"text": "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light."
}
}Response
OK