---
title: "Update Template from Upload (JSON + Base64 File)"
method: PUT
path: "/templates/{filename}"
tags: ["Templates"]
---

# Update Template from Upload (JSON + Base64 File)

`PUT /templates/{filename}`

Update a template file

## Path parameters

- `filename` string, required

## Request body

- object
  - `reseller` string — The reseller or territory the template file applies to.
  - `domain` string — The domain the template file applies to.
  - `server` string — The server the template file applies to.
  - `description` string — A description of the template file to indicate what it is used for
  - `filetype` string, required — Encoding (content type) of the template file
  - `base64_file` string, required — A base64 encoded string formatted without line breaks or spaces.

## Response `202`

- object
  - `code` integer, required
  - `message` string, required

## Other responses

- `400`
- `401`
- `404`

---

[API](https://skmtc.net/ns-api/apis/netsapiens-api-v2.md) · [All operations](https://skmtc.net/ns-api/apis/netsapiens-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ns-api/netsapiens-api-v2/revisions/d37f65b5b886/schema)
