locations

POST /v1/{+parent}/answers:upsert

Creates an answer or updates the existing answer written by the user for the specified question. A user can only create one answer per question.

Request

Path parameters

parentstring required

Required. The name of the question to write an answer for.

Request body

Response

Successful response

namestring

Output only. The unique name for the answer locations//questions//answers/*

createTimestring google-datetime

Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching.

upvoteCountinteger

Output only. The number of upvotes for the answer.

textstring

Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters.

updateTimestring google-datetime

Output only. The timestamp for when the answer was last modified.

Changes

No recorded changes to this operation across all 1 revision of this API.