Phones
List IP phones template files
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
OK
application/json
4XX
Error
get
/templates/phonesGET /api/templates/phones HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"filename": "text",
"is_custom": true
}
]
}Create a new firmware template into system.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
filenamestringOptional
Template XML file name for phone provisioning.
contentstringOptional
The file content of the template.
Responses
201
Created
application/json
4XX
Error
post
/templates/phonesPOST /api/templates/phones HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"filename": "text",
"content": "text"
}{
"filename": "text"
}Retrieve details of template file by it's filename.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
filenamestringRequired
Template XML file name for phone provisioning.
Responses
200
OK
application/json
4XX
Error
get
/templates/phones/{filename}GET /api/templates/phones/{filename} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"filename": "text",
"content": "text",
"is_custom": true
}Update phone template.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
filenamestringRequired
Template XML file name for phone provisioning.
Body
contentstringOptional
The file content of the template.
Responses
200
OK
4XX
Error
post
/templates/phones/{filename}POST /api/templates/phones/{filename} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"content": "text"
}No content