UpdateDraftBodyAction

Updates the email draft body.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#addUpdateContent(String,ContentType)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#` | Adds the specified content to the draft body. |
| `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#setUpdateType(UpdateDraftBodyType)` | `https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#` | Sets the `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type` of this update action on the draft body. |

## Detailed documentation

### `addUpdateContent(content, contentType)`

Adds the specified content to the draft body. The type of the `content` is specified by
`https://developers.google.com/apps-script/reference/card-service/content-type`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `content` | `String` | The content to insert to the email draft. |
| `contentType` | `https://developers.google.com/apps-script/reference/card-service/content-type` | The content type of the content to be inserted. |

#### Return


`https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#` --- This object, for chaining.

*** ** * ** ***

### `setUpdateType(updateType)`

Sets the `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type` of this update action on the draft body. For example,
inserting content at the start, end, or cursor position of the draft body.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `updateType` | `https://developers.google.com/apps-script/reference/card-service/update-draft-body-type` | The type of update to be performed on an email draft. |

#### Return


`https://developers.google.com/apps-script/reference/card-service/update-draft-body-action#` --- This object, for chaining.