UPDATING A RESOURCE (PUT)

To update the data of an existing resource, use the HTTP PUT verb, and use the following pattern:

  1. Populate the appropriate JSON object with valid data and specify the ID of the exising resource.

  2. Call the URL, with the object in the body of the message.

  3. Check the result to determine if the resource was updated successfully.

For example, to update an existing Class of Service:

PUT ivrapi/ClassesOfService

[
 {
  "CosId": 50,
  "Cos": "My New Class Of Service",
  "Options": "",
  "OptionsArray": 
  [
    "NFP",
    "ALIAS",
    "@AUTODIALER"
  ],
  "ExpireDate": "2020-02-09",
  "GmtOffset": 0,
  "CurrencyId": 0,
  "Currency": "",
  "LanguageId": 0,
  "Language": "",
  "RateScheduleId": 27,
  "RateSchedule": "",
  "SalesGroupId": 0,
  "SalesGroup": "",
  "TaxGroupId": 0,
  "TaxGroup": "",
  "PublicCos": true
 }
]

Result

{
 "status":"success",
 "message":"",
 "data": null
}