[COMMAND]
Creating an Operator
The provisioning_create
command can be used to add a new operator to an existing customer, based on supplied criteria.
Not all operator settings must be specified during this process; afterwards, many settings can be updated using the provisioning_set_values
command.
Parameters
tablerequired |
string | Set this to "vcc_operators" . |
use_template_idrequired |
number |
Determines the default settings for the new operator, if not otherwise specified.
|
titlerequired |
string | The new operator's display name. |
web_usernamerequired |
string | The user name used by this operator to sign in to the system and the softphone interface. |
web_passwordrequired |
string |
The password to be used in conjunction with the web user name. If the operator is not required to sign in, this should be set to a randomised string to prevent unauthorised access. |
external_idrequired |
string |
An ID used by a third-party to identify the data. If used, an If no ID is needed, use an empty string for this value. |
external_id_typerequired |
string |
If an |
request_idoptional |
string |
If specified, this value will be returned as part of the response event. It can be used to help a calling application associate a request with its response. |
phone_numberoptional |
string |
(Not needed for VoIP operators) If specified, the new operator will be classified as a phone operator, assigned the specified number. This should be in operator's 'local' phone number format, based on geographic conventions e.g. 212 555 0123 for the United States. |
wrap_timeoptional |
number |
The automatic wrap time duration (in seconds) for the new operator, between 0-9999. If not specified, the operator will use the system default wrap time. |
ring_timeoptional |
number |
The automatic ring time duration (in seconds) for the new operator, between 1-600. If not specified, the operator will use the system default ring time. |
auto_logout_missed_callsoptional |
number |
The number of calls (ranging from 0 to 9999) after which this operator will be automatically logged out of the system. A value of 0 means the operator will not be logged out for missing any number of calls. If this is not specified, the operator will inherit the system's default value. |
uses_voipoptional |
Boolean |
Specifies whether the operator will use a Defaults to 0 or empty string. |
Example Request
{"command":{"command_type":"provisioning_create", "table":"vcc_operators", "use_template_id":-1, "title":"Bobby Jo", "web_username":"bobbyjo", "web_password":"123456", "external_id_type":"a", "external_id":""}}
Responses
On Success:
After successful creation of an operator, a provisioning_values
event is returned containing details of that operator.
On Failure:
Failure to complete this command will cause a provisioning_error
event, containing a description of what went wrong.