Modify value(s) of a field

Values of a field in a project can be modified.

Request
Method PUT
Resource https://[customer].asp.virtual-call-center.eu/v2/projects/[projectid]/fields/[fieldid]/values/[valueid]
Options N/A
Body Customised data, encoded in JSON.
Response
Body Shows whether the request has been successful or not.

Request

Resource parameters

Name Type Mandatory Comment
customer string yes Your call centre’s unique identifier (subdomain).
fieldid integer yes Unique field identifier.
projectid integer yes Unique project identifier.
valueid integer yes Unique value identifier.

Request object

Name Type Mandatory Comment
comission string no Agent’s commission.
description string no Simple description.
exportvalue string no Value’s export name.
name string yes Value name.
price string no Call centre’s commission.

Example

Request

URL: https://mycc.asp.virtual-call-center.eu/v2/projects/251/fields/11/values/13

Request body

{
    "name": "Subscription1",
    "description": "subscription for internet",
    "export_value": "E002",
    "price": "1000",
    "commission": "2000"
}

Response body – on success

{
    "errors": [],
    "response": true
}

Possible errors

HTTP Code Message Description
417 error.name_must_be_between The name is too short or long.
417 error.value_name_already_exists The name already exists in VCC’s database.
417 error.wrong_value_format Mandatory parameter (name) is missing.
417 error.wrong_values_format The format of data sent is not an array or object.

There are no comments yet.

Comment

Subscribe to our newsletter
or Contact us!