Phones

List firmware templates

get

List IP phones template files

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
get
/templates/phones
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

post

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
post
/templates/phones
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 firmware template

get

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

post

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