
"Input for `updateTemplate` mutation"
input UpdateTemplateInput {
  "An optional string identifying the mutation call, which will be returned in the response payload"
  clientMutationId: String

  "ID of template to modify"
  id: ID!

  "The shop that owns the template"
  shopId: ID!

  "Email template string"
  subject: String

  "Email template body or html text"
  template: String

  "Email template title"
  title: String

}

"Response payload for `updateTemplate` mutation"
type UpdateTemplatePayload {
  "The same string you sent with the mutation params, for matching mutation calls with their responses"
  clientMutationId: String

  "The updated template"
  template: Template!
}

extend type Mutation {
  "Updates an existing template"
  updateTemplate(
    "Mutation input"
    input: UpdateTemplateInput!
  ): UpdateTemplatePayload!
}
