templateUpdate
Update an email template. The templateUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: admin:write
For a complete list of input attributes see the TemplateAttributes type
mutation templateUpdate ($id: ID!, $attributes: TemplateAttributes!) {
templateUpdate (id: $id, attributes: $attributes) {
errors
template {
body
createdAt
id
name
subject
title
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"attributes": {
"id": "456123",
"name": "",
"title": "",
"subject": "",
"body": ""
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| attributes | TemplateAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| template | Template |