---
title: "Set or clear the applied-template marker for an account"
method: PUT
path: "/rest/api/v1/accounts/{accountId}/appliedTemplate"
tags: ["Account API"]
---

# Set or clear the applied-template marker for an account

`PUT /rest/api/v1/accounts/{accountId}/appliedTemplate`

## Request

- Base URL: `https://api.metacopier.io`
- URL: `https://api.metacopier.io/rest/api/v1/accounts/{accountId}/appliedTemplate`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/metacopier/apis/metacopier-api/docs/rest/api/v1/accounts/:accountId/appliedTemplate/put.ts> (a function with typed inputs; its response is checked against the schema)

Sets or clears the three apply-marker columns on the account (accountTemplate1, appliedTemplateRevision, appliedTemplateMeta). Pass an empty body / null templateId to clear the link.

## Path parameters

- `accountId` string, uuid, required

## Request body

- AppliedTemplateDTO: Sets or clears the link between an account and a template. Send templateId=null to unlink.
  - `meta` JsonNode: Full template payload. Includes a `schemaVersion` discriminator describing its JSON shape; older versions are migrated transparently on read.
  - `templateId` string, uuid, nullable: Template to link this account to. Send null to clear the existing link.
  - `templateRevision` integer, nullable: Revision of the template that was applied. Required when templateId is set.

## Response `204`

No Content

## Changes

- **2026-08-10** `5c1371d2c0b2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metacopier/apis/metacopier-api/changes/rest/api/v1/accounts/:accountId/appliedTemplate/put.md)

---

[API](https://skmtc.dev/metacopier/apis/metacopier-api.md) - [All operations](https://skmtc.dev/metacopier/apis/metacopier-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metacopier/apis/metacopier-api/revisions/cbf3e7810fc2?raw)
