---
title: updateDraft
framework: appintents
role: symbol
role_heading: Instance Property
path: appintents/appschema/mailintent/updatedraft
---

# updateDraft

An intent schema that makes updates to an email draft.

## Declaration

```swift
var updateDraft: some AppSchemaIntent { get }
```

## Discussion

Discussion To make your app’s actions available to Apple Intelligence, conform your AppIntent to a schema that describes your action to the system. If your app’s functionality aligns with the mail domain and one of your app’s actions matches the updateDraft schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the @AppIntent( .mail.updateDraft) Swift macro. To make your app work with Siri, see Apple Intelligence and Siri AI. The following example shows an intent that conforms to the updateDraft schema: @AppIntent(schema: .mail.updateDraft) struct UpdateDraftIntent {     var target: <#MailDraftEntity#>     var to: [IntentPerson]?     var cc: [IntentPerson]?     var bcc: [IntentPerson]?     var subject: String?     var body: AttributedString?     var account: <#MailAccountEntity#>?     var attachments: [IntentFile]?

func perform() async throws -> some IntentResult {         <#code#>     } } The schema supports the following system experiences: Siri Shortcuts For more information about the App Intents framework and the experiences it supports, see Getting started with the App Intents framework.

## See Also

### Actions

- [archiveMail](appintents/appschema/mailintent/archivemail.md)
- [createDraft](appintents/appschema/mailintent/createdraft.md)
- [deleteDraft](appintents/appschema/mailintent/deletedraft.md)
- [deleteMail](appintents/appschema/mailintent/deletemail.md)
- [forwardMail](appintents/appschema/mailintent/forwardmail.md)
- [openDraft](appintents/appschema/mailintent/opendraft.md)
- [openMessage](appintents/appschema/mailintent/openmessage.md)
- [replyMail](appintents/appschema/mailintent/replymail.md)
- [saveDraft](appintents/appschema/mailintent/savedraft.md)
- [sendDraft](appintents/appschema/mailintent/senddraft.md)
- [updateMail](appintents/appschema/mailintent/updatemail.md)
- [AppSchema.MailIntent](appintents/appschema/mailintent.md)
