| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
long | ✔️ | The opaque ID of the Answer. | 3 |
docId |
Optional<String> | ➖ | Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. | ANSWERS_answer_3 |
question |
Optional<String> | ➖ | N/A | Why is the sky blue? |
questionVariations |
List<String> | ➖ | Additional ways of phrasing this question. | |
bodyText |
Optional<String> | ➖ | The plain text answer to the question. | From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light. |
boardId |
Optional<Long> | ➖ | : warning: ** DEPRECATED **: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Answer Boards no longer supported. The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. |
|
audienceFilters |
List<FacetFilter> | ➖ | Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. | |
addedRoles |
List<UserRoleSpecification> | ➖ | A list of user roles for the answer added by the owner. | |
removedRoles |
List<UserRoleSpecification> | ➖ | A list of user roles for the answer removed by the owner. | |
roles |
List<UserRoleSpecification> | ➖ | A list of roles for this answer explicitly granted by an owner, editor, or admin. | |
sourceDocumentSpec |
Optional<DocumentSpecUnion> | ➖ | N/A | |
sourceType |
Optional<AnswerSourceType> | ➖ | N/A | |
permissions |
Optional<ObjectPermissions> | ➖ | N/A | |
combinedAnswerText |
Optional<StructuredText> | ➖ | N/A | |
likes |
Optional<AnswerLikes> | ➖ | N/A | |
author |
Optional<Person> | ➖ | N/A | { "name": "George Clooney", "obfuscatedId": "abc123" } |
createTime |
OffsetDateTime | ➖ | The time the answer was created in ISO format (ISO 8601). | |
updateTime |
OffsetDateTime | ➖ | The time the answer was last updated in ISO format (ISO 8601). | |
updatedBy |
Optional<Person> | ➖ | N/A | { "name": "George Clooney", "obfuscatedId": "abc123" } |
verification |
Optional<Verification> | ➖ | N/A | |
collections |
List<Collection> | ➖ | The collections to which the answer belongs. | |
documentCategory |
Optional<String> | ➖ | The document's document_category(.proto). | |
sourceDocument |
Optional<Document> | ➖ | N/A |