Mutation
mutation UpdateEmailTemplate($id: ID!) {
updateEmailTemplate(id: $id) {
result {
id
type
recipientType
title
subject
body
}
errors {
message
code
fields
path
}
}
}Variables
{
"id": "id"
}Response
{
"data": {
"updateEmailTemplate": {
"result": {
"id": "id",
"type": "string",
"recipientType": "string",
"title": "string",
"subject": "string",
"body": "string"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}Mutations
updateEmailTemplate
MUTATION
updateEmailTemplate(id: ID!, input: UpdateEmailTemplateInput): UpdateEmailTemplateResult!Arguments
id
ID!
required
Returns
result
The successful result of the mutation
errors
[MutationError!]!
Any errors generated, if the mutation failed
Mutation
mutation UpdateEmailTemplate($id: ID!) {
updateEmailTemplate(id: $id) {
result {
id
type
recipientType
title
subject
body
}
errors {
message
code
fields
path
}
}
}Variables
{
"id": "id"
}Response
{
"data": {
"updateEmailTemplate": {
"result": {
"id": "id",
"type": "string",
"recipientType": "string",
"title": "string",
"subject": "string",
"body": "string"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}