Modify contact
Modify a record’s contacts.
| Request | |
|---|---|
| Method | PUT |
| Resource | https://[customer].asp.virtual-call-center.eu/v2/projects/[projectid]/records/[numberid]/contacts/[contact] |
| Options | NA |
| Body | Customized data, encoded in JSON. |
| Response | |
| Body | Results whether the request succeeded or not. |
Request
Resource parameters
| Name | Type | Mandatory | Comment |
|---|---|---|---|
| contacts | integer | yes | Contact identifier. ContactId = 1 can always be updated, but ContactIds 2, 3,… are only possible to be updated when phone2, phone3,.. fields exist in the project. |
| customer | string | yes | Your call centre’s unique identifier (subdomain). |
| numberid | integer | yes | Unique record identifier. |
| projectid | integer | yes | Unique project identifier. |
Response
Response object
| Name | Type | Comment |
|---|---|---|
| response | boolean | States whether the request is successful or not. Possible values: – true – false |
Example
This request sets the contact information for the second contact of the client.
URL: https://mycc.asp.virtual-call-center.eu/v2/projects/134/records/19873/contacts/2
Request body
{
"title": "Supervisor",
"name": "Peter Green",
"phone": "3619997400",
"email": "[email protected]"
}
Response body – on success
{
"errors": [],
"response": true
}
Response body – on error
{
"response": false,
"errors": [
{
"index": 1,
"errorcode": 417,
"errormessage": "error.wrong_email_format"
}
]
}
Possible errors
| HTTP Code | Message | Description |
|---|---|---|
| 417 | error.contact_not_exists | The contacts do not exist. |
| 417 | error.wrong_email_format | The email format is not valid. |
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.