Modify record
Modify a record’s customized data.
If the value field (that can handle only one value) contains text, then:
- it finds the field value based on the text input, and sets it (based on the id)
- if it does not find the field value, then it automatically creates a new field value
If the value field (that can handle more than one value) contains text, then:
- it attempts to divide the text separated by the “|” character
- if it doesn’t find any “|” character, then it handles it as one value
The followings apply to each separated value:
- it finds the field value based on the text input, and sets it (based on the id)
- if it does not find the field value, then it automatically creates a new field value
Request | |
---|---|
Method | PUT |
Resource | https://[customer].asp.virtual-call-center.eu/v2/projects/[projectid]/records/[numberid] |
Options | next_contact |
Body | Customized data, encoded in JSON. |
Response | |
Body | Results whether the request is succeeded or not. |
Request
Resource parameters
Name | Type | Mandatory | Comment |
---|---|---|---|
customer | string | yes | Your call centre’s unique identifier (subdomain). |
numberid | integer | yes | Unique record identifier. |
projectid | integer | yes | Unique project identifier. |
Options
Name | Type | Comment |
---|---|---|
next_contact | string | Contains the telephone number the system should call next. Possible values: – phone1, phone2…phone9 |
Response
Response object
Name | Type | Comment |
---|---|---|
response | boolean | States whether request is successful or not. Possible values: – true – false |
Example
This request sets ‘phone1’ field’s value and sets it as next callable number.
URL: https://mycc.asp.virtual-call-center.eu/v2/projects/134/records/19873
Request body
{
"phone1": "3619997400",
"address": "1 Main street",
"city": "Budapest",
"likes": "sports|movies"
}
Response body – on success
{
"errors": [],
"response": true
}
Response body – on error
{
"errors": [
{
"errorcode": 400,
"errormessage": "400 Bad request",
"index": 0
}
],
"response": false
}
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.