# Responses

## Response


A single response from an update.

| JSON representation |
|---|
| ``` { "replaceAllText": { object (`ReplaceAllTextResponse`) }, "createNamedRange": { object (`CreateNamedRangeResponse`) }, "insertInlineImage": { object (`InsertInlineImageResponse`) }, "insertInlineSheetsChart": { object (`InsertInlineSheetsChartResponse`) }, "createHeader": { object (`CreateHeaderResponse`) }, "createFooter": { object (`CreateFooterResponse`) }, "createFootnote": { object (`CreateFootnoteResponse`) }, "addDocumentTab": { object (`AddDocumentTabResponse`) }, "insertComment": { object (`InsertCommentResponse`) }, "addCommentReply": { object (`AddCommentReplyResponse`) }, "createDropdownDefinition": { object (`CreateDropdownDefinitionResponse`) }, "insertDropdown": { object (`InsertDropdownResponse`) } } ``` |

| Fields ||
|---|---|
| The response for the corresponding request. May have no fields set if the request had no response. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `replaceAllText` | ``object (`ReplaceAllTextResponse`)`` The result of replacing text. |
| `createNamedRange` | ``object (`CreateNamedRangeResponse`)`` The result of creating a named range. |
| `insertInlineImage` | ``object (`InsertInlineImageResponse`)`` The result of inserting an inline image. |
| `insertInlineSheetsChart` | ``object (`InsertInlineSheetsChartResponse`)`` The result of inserting an inline Google Sheets chart. |
| `createHeader` | ``object (`CreateHeaderResponse`)`` The result of creating a header. |
| `createFooter` | ``object (`CreateFooterResponse`)`` The result of creating a footer. |
| `createFootnote` | ``object (`CreateFootnoteResponse`)`` The result of creating a footnote. |
| `addDocumentTab` | ``object (`AddDocumentTabResponse`)`` The result of adding a document tab. |
| `insertComment` | ``object (`InsertCommentResponse`)`` The result of inserting a comment. |
| `addCommentReply` | ``object (`AddCommentReplyResponse`)`` The result of adding a reply to a comment or suggestion. |
| `createDropdownDefinition` | ``object (`CreateDropdownDefinitionResponse`)`` The result of creating a dropdown definition. |
| `insertDropdown` | ``object (`InsertDropdownResponse`)`` The result of inserting a dropdown. |
| End of mutually exclusive fields. ||

## ReplaceAllTextResponse


The result of replacing text.

| JSON representation |
|---|
| ``` { "occurrencesChanged": integer } ``` |

| Fields ||
|---|---|
| `occurrencesChanged` | `integer` The number of occurrences changed by replacing all text. |

## CreateNamedRangeResponse


The result of creating a named range.

| JSON representation |
|---|
| ``` { "namedRangeId": string } ``` |

| Fields ||
|---|---|
| `namedRangeId` | `string` The ID of the created named range. |

## InsertInlineImageResponse


The result of inserting an inline image.

| JSON representation |
|---|
| ``` { "objectId": string } ``` |

| Fields ||
|---|---|
| `objectId` | `string` The ID of the created `InlineObject`. |

## InsertInlineSheetsChartResponse


The result of inserting an embedded Google Sheets chart.

| JSON representation |
|---|
| ``` { "objectId": string } ``` |

| Fields ||
|---|---|
| `objectId` | `string` The object ID of the inserted chart. |

## CreateHeaderResponse


The result of creating a header.

| JSON representation |
|---|
| ``` { "headerId": string } ``` |

| Fields ||
|---|---|
| `headerId` | `string` The ID of the created header. |

## CreateFooterResponse


The result of creating a footer.

| JSON representation |
|---|
| ``` { "footerId": string } ``` |

| Fields ||
|---|---|
| `footerId` | `string` The ID of the created footer. |

## CreateFootnoteResponse


The result of creating a footnote.

| JSON representation |
|---|
| ``` { "footnoteId": string } ``` |

| Fields ||
|---|---|
| `footnoteId` | `string` The ID of the created footnote. |

## AddDocumentTabResponse


The result of adding a document tab.

| JSON representation |
|---|
| ``` { "tabProperties": { object (`TabProperties`) } } ``` |

| Fields ||
|---|---|
| `tabProperties` | ``object (`TabProperties`)`` The properties of the newly added tab. |

## InsertCommentResponse


Response message for inserting a comment.

| JSON representation |
|---|
| ``` { "commentThread": { object (`CommentThread`) } } ``` |

| Fields ||
|---|---|
| `commentThread` | ``object (`CommentThread`)`` The newly-inserted comment thread. |

## AddCommentReplyResponse


Response message for adding a reply.

| JSON representation |
|---|
| ``` { "post": { object (`Post`) } } ``` |

| Fields ||
|---|---|
| `post` | ``object (`Post`)`` The newly-inserted reply `Post`. |

## CreateDropdownDefinitionResponse


Response message for creating a dropdown definition.

| JSON representation |
|---|
| ``` { "dropdownDefinition": { object (`DropdownDefinition`) } } ``` |

| Fields ||
|---|---|
| `dropdownDefinition` | ``object (`DropdownDefinition`)`` The newly-created `DropdownDefinition`. |

## InsertDropdownResponse


The result of inserting a
`Dropdown`.

| JSON representation |
|---|
| ``` { "dropdown": { object (`Dropdown`) } } ``` |

| Fields ||
|---|---|
| `dropdown` | ``object (`Dropdown`)`` The newly-inserted `Dropdown`. |