# Assign the template to a product

{% hint style="info" %}
Both sku and template must already exist.
{% endhint %}

```graphql
mutation {
  productSetTemplate(input: { sku: "SKU78", template: "template" }) {
    __typename
  }
}
```
