---
title: "Update firmware template"
method: POST
path: "/templates/phones/{filename}"
tags: ["Auto Provisioning"]
---

# Update firmware template

`POST /templates/phones/{filename}`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/templates/phones/{filename}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/templates/phones/:filename/post.ts> (a function with typed inputs; its response is checked against the schema)

Update phone template.

## Path parameters

- `filename` string, required: Template XML file name for phone provisioning.

## Request body

- object
  - `content` string: The file content of the template.

## Response `200`

OK

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
