# Replace Marketing Campaign SMS Content

Replaces automation SMS plaintext at its current draft revision. Empty text is allowed; active or scheduled uses are refused. Does not send. Notification SMS use replace-notification-sms-content.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "smsId": {
      "type": "integer",
      "minimum": 1
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "plain": {
      "type": "string",
      "maxLength": 5000
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "smsId",
    "revision",
    "plain"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "smsId",
    "kind",
    "revision",
    "name",
    "notes",
    "metaLabels",
    "sender",
    "provider",
    "linkTracking",
    "plainContent",
    "usedByAutomationIds",
    "smartTags",
    "deleted"
  ],
  "properties": {
    "smsId": {
      "type": "integer"
    },
    "kind": {
      "type": "string"
    },
    "revision": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "metaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sender": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "linkTracking": {
      "type": "integer"
    },
    "plainContent": {
      "type": "string"
    },
    "usedByAutomationIds": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "smartTags": {
      "type": [
        "object",
        "array"
      ],
      "additionalProperties": {
        "type": "integer"
      }
    },
    "deleted": {
      "type": "boolean"
    }
  }
}
```

