Was this helpful?
Retrieve details of template file by it's filename.
Template XML file name for phone provisioning.
GET /api/templates/phones/{filename} HTTP/1.1 Host: hostname:8887 Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
OK
{ "filename": "text", "content": "text", "is_custom": true }
List IP phones template files
GET /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.
The file content of the template.
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" }
Created
{ "filename": "text" }
Update phone template.
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