Was this helpful?
List IP phones template files
/templates/phones
curl -L \ --url 'https://HOSTNAME:8887/api/templates/phones' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "items": [ { "filename": "text", "is_custom": true } ] }
Create a new firmware template into system.
Template XML file name for phone provisioning.
The file content of the template.
curl -L \ --request POST \ --url 'https://HOSTNAME:8887/api/templates/phones' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "filename": "text", "content": "text" }'
{ "filename": "text" }
Retrieve details of template file by it's filename.
/templates/phones/{filename}
curl -L \ --url 'https://HOSTNAME:8887/api/templates/phones/{filename}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "filename": "text", "content": "text", "is_custom": true }
Update phone template.
curl -L \ --request POST \ --url 'https://HOSTNAME:8887/api/templates/phones/{filename}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "content": "text" }'
No body