Download a System Prompt

Download the online system prompt of a specified language to the PBX.

Request URL

GET {base_url}/{api_path}/system_prompt/download?language={language}&access_token={access_token}

Request parameters

Parameter Required Type Description
language Yes String The language code of the system prompt to download (e.g., "sound-en").
Note:
  • You can query the language code of the system prompt using Query Online System Prompt List.
  • If the system prompt of the language exists on the PBX, the system updates it to the online prompt version. If not, the online prompt is installed on the PBX and appears in the system prompt list (Path: PBX Settings > Voice Prompt > System Prompt).

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Example

Request example

GET /openapi/v1.0/system_prompt/download?language=sound-zh&access_token=gwakjgu9ZBUfz36wql4ndsVKkryI0kdj HTTP/1.1
Host: 192.168.5.150:8088

Response example

HTTP/1.1 200 OK
{
  "errcode": 0,
  "errmsg": "SUCCESS"
}