Skip to main content

deleteDraft

Requires permission sales:quote:update.

Permanently deletes one of the caller's own email drafts. Another user's draft, or an unknown ID, is treated as missing. Requires permission to update quotes.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation DeleteDraft($id: ID!) {
deleteDraft(id: $id)
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"deleteDraft": true
}
}
deleteDraft(
id: ID!
): Boolean!

Arguments​

deleteDraft.id ● ID! non-null scalar​

The ID of the email draft.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.