# Replace Email Plain Text

Stores a separately maintained plain-text version for a drag-and-drop email that can still be edited, or removes it with an empty string so KlickTipp generates it from the HTML again. Only for accounts with the setting to maintain plain text themselves, as in the editor. While a plain text is stored, the tools that change the body refuse; remove it first to write the body. Takes effect for sends immediately; nothing is sent.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "editorUrl": {
      "type": "string",
      "description": "Editor URL of the email, as the email editor tools return it",
      "minLength": 12,
      "maxLength": 500
    },
    "plainText": {
      "type": "string",
      "description": "The complete plain text; an empty string removes it, so KlickTipp generates it from the HTML again",
      "maxLength": 100000
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "editorUrl",
    "plainText"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "emailId",
    "editorUrl",
    "plainText",
    "isCustom",
    "writable",
    "blockers"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "emailId": {
      "type": "integer"
    },
    "editorUrl": {
      "type": "string"
    },
    "plainText": {
      "type": "string"
    },
    "isCustom": {
      "type": "boolean"
    },
    "writable": {
      "type": "boolean"
    },
    "blockers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

