> For the complete documentation index, see [llms.txt](https://api-docs.rightsline.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.rightsline.com/entities/royalty/switch-royalty-template.md).

# Switch royalty template

## Switch template

<mark style="color:green;">`POST`</mark> `https://ris.rightsline.com/v4/royalty/:id/switch-template`

Switch a royalty to a different template, migrating compatible data.

#### Path Parameters

| Name | Type    | Description                                   |
| ---- | ------- | --------------------------------------------- |
| id   | integer | ID of the royalty to switch the template for. |

#### Headers

| Name           | Type   | Description             |
| -------------- | ------ | ----------------------- |
| x-api-key      | string | Your company's API key. |
| Authentication | string | Authentication token.   |

#### Request Body

| Name       | Type    | Description                        |
| ---------- | ------- | ---------------------------------- |
| templateId | integer | The ID of the new target template. |

{% tabs %}
{% tab title="200 Template switched successfully." %}

```json
true
```

{% endtab %}
{% endtabs %}
