Phones
Create a new firmware template into system.
Authorizations
Body
filenamestringOptional
Template XML file name for phone provisioning.
contentstringOptional
The file content of the template.
Responses
201
Created
application/json
4XX
Error
post
POST /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
Path parameters
filenamestringRequired
Template XML file name for phone provisioning.
Responses
200
OK
application/json
4XX
Error
get
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
Path parameters
filenamestringRequired
Template XML file name for phone provisioning.
Body
contentstringOptional
The file content of the template.
Responses
200
OK
4XX
Error
post
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