Create Project
Create project
Create a new project with configuration options matching the Project Wizard.
| Request | |
|---|---|
| Method | POST |
| Resource | https://[customer].asp.virtual-call-center.eu/v2/projects |
| Options | N/A |
| Body | JSON object containing the project configuration. |
| Response | |
| Body | Object containing the newly created project’s identifier, encoded in JSON. |
Request
Resource parameters
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| customer | string | yes | Your call center’s identifier (also called as account or subdomain). |
Body parameters
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| name | string | yes | Unique name of the project. Must not match an existing project name. |
| dispositions | array of objects | yes | List of initial dispositions for the project (at least 1 required). |
| teamIds | array of integers | yes | List of team IDs assigned to the project (at least 1 required). |
| userIds | array of integers | no | List of active, non-supervisor user IDs to assign to the project. Users must belong to the assigned teams. |
| folderId | integer | no | Identifier of the target folder. Default: 0 (no folder). |
| mode | string | no | Dialing mode of the project. Possible values: manual, power, predictive, outbound_ivr, inherited. Default: manual. |
| predictiveTemplate | string | no | Predictive template identifier (template1, template2, template3). Only applicable when mode is predictive. |
| routingId | string | no | Outbound routing identifier (e.g. global_routing). Mandatory if callerNumber is provided. |
| callerNumber | string | no | Outbound caller ID number. Must be CLI-enabled and belong to the specified routingId. |
| inboundNumber | string | no | Inbound phone number to assign to the project. Must not be assigned to another project. |
| pciEnabled | boolean | no | Enables PCI mode for the project. Default: false. |
| color | string | no | Project color in hex format (e.g. #ff8800). Default: #666666. |
| language | string | no | Project language code used for default dispositions and settings (e.g. hu, de, en-US). Default: en-US. |
Note: Only
name,dispositions, andteamIdsare mandatory. If optional fields are omitted, the project is created as inactive with default values (mode:manual,language:en-US,color:#666666,folderId:0/ no folder). All fields are validated before saving; if creation fails partway through, any partially created project is automatically rolled back.
Dispositions object
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| name | string | yes | Name of the disposition. Must not be a reserved disposition name. |
| type | string | yes | Type of the disposition. Possible values: success, failed, ordered. |
Response
Response object
| Name | Type | Comment |
|---|---|---|
| projectId | integer | Unique identifier of the newly created project. |
Errors object
| Name | Type | Comment |
|---|---|---|
| errorcode | integer | Error code identifying the validation failure (e.g. 600). |
| errormessage | string | Error message key (e.g. error.reserved_name, error.projectname_already_exists, error.item_not_found, error.number_already_assigned, error.package_not_enabled, error.bad_arguments). |
| property | string | Name of the request property that failed validation (e.g. dispositions, name, teamIds, callerNumber). |
| index | integer | 0-based index of the invalid item, when the error refers to an array element. |
Example
URL: https://mycc.asp.virtual-call-center.eu/v2/projects
Request Body:
{
"name": "Teszt projekt",
"dispositions": [
{
"name": "Sikeres",
"type": "success"
},
{
"name": "Nem erdekli",
"type": "failed"
}
],
"teamIds": [1],
"userIds": [8, 11],
"folderId": 3,
"mode": "predictive",
"predictiveTemplate": "template2",
"routingId": "global_routing",
"callerNumber": "3679998169",
"inboundNumber": "3679998172",
"pciEnabled": false,
"color": "#ff8800",
"language": "hu"
}
Response (success):
{
"response": {
"projectId": 40031
},
"errors": []
}
Response (validation error):
{
"response": false,
"errors": [
{
"errorcode": 600,
"errormessage": "error.reserved_name",
"property": "dispositions",
"index": 1
}
]
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.