# Update Automation-Sms Draft

Updates supplied automation SMS settings at the current revision. Settings save only while the SMS has a provider and sender, as in the app. Refuses SMS used by active or scheduled automations. Content and action assignment use separate tools; sends nothing.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "smsId": {
      "type": "integer",
      "minimum": 1
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "settings": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 250
        },
        "notes": {
          "type": "string",
          "maxLength": 1000
        },
        "metaLabels": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 250
          }
        },
        "smsSenderName": {
          "type": "string",
          "maxLength": 250
        },
        "senderSms": {
          "type": "string",
          "maxLength": 32,
          "description": "Use 0 with smsSenderName for an alphanumeric sender; otherwise use the configured sender number."
        },
        "smsProvider": {
          "type": "string",
          "enum": [
            "",
            "nexmo",
            "twilio"
          ]
        },
        "linkTracking": {
          "type": "integer",
          "enum": [
            0,
            1
          ],
          "description": "1 enables click tracking; 0 disables it."
        }
      }
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "smsId",
    "revision",
    "settings"
  ],
  "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"
    }
  }
}
```

