---
title: "Create a new firmware template"
method: POST
path: "/templates/phones"
tags: ["Auto Provisioning"]
---

# Create a new firmware template

`POST /templates/phones`

## Request

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

Create a new firmware template into system.

## Request body

- object
  - `filename` string: Template XML file name for phone provisioning.
  - `content` string: The file content of the template.

## Response `201`

Created

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

## 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)
