Phones

List firmware templates

get

List IP phones template files

Authorizations
Responses
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

post

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
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 firmware template

get

Retrieve details of template file by it's filename.

Authorizations
Path parameters
filenamestringrequired

Template XML file name for phone provisioning.

Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/templates/phones/{filename}' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "filename": "text",
  "content": "text",
  "is_custom": true
}

Update firmware template

post

Update phone template.

Authorizations
Path parameters
filenamestringrequired

Template XML file name for phone provisioning.

Body
contentstringoptional

The file content of the template.

Responses
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

Was this helpful?