Modify record

Reading Time: 2 minutes

Modify a record’s customised 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 values) 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 values:

  • 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 Customised 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
}

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.