# Replace Email Plain Text

Replaces a drag-and-drop email’s separate plain text, or clears it with an empty string to generate it from HTML. Requires the account’s manual plain-text setting and an editable email. Stored plain text blocks body edits until cleared. Takes effect for sends immediately; sends nothing.

## 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"
      }
    }
  }
}
```

