Modify contact

Reading Time: 1 minute

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 Customised data, encoded in JSON.
Response
Body Results whether the request is succeeded or not.

Request

Resource parameters

Name Type Mandatory Comment
contacts integer yes Contact identifier.
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 request is successful or not. Possible values:
– true
– false

Example

This request sets contact informations to 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": "peter.green@gmail.com"
}

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 is not exists.
417 error.wrong_email_format The email format is not valid.

There are no comments yet.
Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live® about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live® will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.