# REST Resource: accounts.locations.questions.answers

- [Resource: Answer](https://developers.google.com/my-business/reference/rest/v4/accounts.locations.questions.answers#Answer)
  - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/accounts.locations.questions.answers#Answer.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/my-business/reference/rest/v4/accounts.locations.questions.answers#METHODS_SUMMARY)

## Resource: Answer

Represents an answer to a question

| JSON representation ||
|---|---|
| ``` { "name": string, "author": { object (`https://developers.google.com/my-business/reference/rest/v4/Author`) }, "upvoteCount": integer, "text": string, "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The unique name for the answer accounts/\*/locations/\*/questions/\*/answers/\* |
| `author` | ``object (`https://developers.google.com/my-business/reference/rest/v4/Author`)`` Output only. The author of the answer. |
| `upvoteCount` | `integer` Output only. The number of upvotes for the answer. |
| `text` | `string` The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The timestamp for when the answer was written. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The timestamp for when the answer was last modified. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/my-business/reference/rest/v4/accounts.locations.questions.answers/delete` | Deletes the answer written by the current user to a question. |
| ### `https://developers.google.com/my-business/reference/rest/v4/accounts.locations.questions.answers/list` | Returns the paginated list of answers for a specified question. |
| ### `https://developers.google.com/my-business/reference/rest/v4/accounts.locations.questions.answers/upsert` | Creates an answer or updates the existing answer written by the user for the specified question. |