add a backup file
POST
/backup_file/add
add a backup file
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
filenamestring
required
Filename for the backup. -
fileidstring
required
file download id for the backup.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/maintenance/backup_file/add \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"filename": "a.zip",
"fileid": "2.1asdadas"
}'
Responses
200
Successful operation
Sample Response
List backup files
GET
/backup_file/list
List backup files
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
optional
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/maintenance/backup_file/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
pagesizeinteger
-
backup_filesarray
Show child attributes -
countinteger
-
page_countinteger
-
sort_bystring
-
paginationinteger
Sample Response
{
"pagesize": 10,
"count": 100,
"page_count": 80,
"pagination": 8,
"sort_by": "DEFAULT"
}
Update backup schedule
POST
/backup_schedule/update
Update backup schedule
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
schedule_infoobject
required
Show child attributes -
include_system_promptsboolean
required
To include system prompts in the backup. -
include_recordingsboolean
required
To include recordings in the backup. -
enabledboolean
required
Indicates if backup schedule is enabled. -
include_call_history_recordsboolean
required
To include call details records in the backup. -
include_phone_provision_and_firmware_filesboolean
required
To include phone provision and firmware files in the backup. -
include_voicemailsboolean
required
To include voicemails in the backup.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/maintenance/backup_schedule/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"include_system_prompts": true,
"include_recordings": true,
"enabled": true,
"include_call_history_records": true,
"include_voicemails": true,
"include_phone_provision_and_firmware_files": true
}'
Responses
200
Successful operation
Sample Response
Perform restore instantly
POST
/restore
Perform restore instantly
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
filenamestring
required
Filename for the backup. -
fileidstring
required
file download id for the backup.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/maintenance/restore \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"filename": "a.zip",
"fileid": "2.1asdadas"
}'
Responses
200
Successful operation
400
Invalid backup file name.
Sample Response
Delete backup file
POST
/backup_file/delete
Delete backup file
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
filenamestring
required
Filename for the backup. -
fileidstring
required
file download id for the backup.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/maintenance/backup_file/delete \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"filename": "a.zip",
"fileid": "2.1asdadas"
}'
Responses
200
Successful operation
400
Invalid backup file name.
Sample Response
Show backup schedule
GET
/backup_schedule/show
Show backup schedule
Path parameters
-
access_tokenstring
required
token to be passed as a header
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/maintenance/backup_schedule/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
schedule_infoobject
Show child attributes -
include_system_promptsboolean
To include system prompts in the backup. -
include_recordingsboolean
To include recordings in the backup. -
enabledboolean
Indicates if backup schedule is enabled. -
include_call_history_recordsboolean
To include call details records in the backup. -
include_phone_provision_and_firmware_filesboolean
To include phone provision and firmware files in the backup. -
include_voicemailsboolean
To include voicemails in the backup.
Sample Response
{
"include_system_prompts": true,
"include_recordings": true,
"enabled": true,
"include_call_history_records": true,
"include_voicemails": true,
"include_phone_provision_and_firmware_files": true
}
Perform a backup instantly
POST
/backup
Perform a backup instantly
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
include_system_promptsboolean
required
To include system prompts in the backup. -
include_recordingsboolean
required
To include recordings in the backup. -
backup_filenamestring
required
Filename for the backup. -
include_call_history_recordsboolean
required
To include call details records in the backup. -
include_phone_provision_and_firmware_filesboolean
required
To include phone provision and firmware files in the backup. -
include_voicemailsboolean
required
To include voicemails in the backup.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/maintenance/backup \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{
"include_system_prompts": true,
"include_recordings": true,
"include_call_history_records": true,
"backup_filename": "a.zip",
"include_voicemails": true,
"include_phone_provision_and_firmware_files": true
}'
Responses
200
Successful operation
Sample Response