Update case

Set a case's group, owner, priority, status or SLA.

PATCH https://cotlet.dev/api/v1/vtiger/records/{record_id}/case

write Confirm

Changes the fields you pass on one case and leaves the others as they are. group is the team picklist from Deep Dive, assigned_to a person, sla_name one of the customer SLAs. Setting Resolved starts Vtiger's own wait before the case closes by itself. A group or SLA the CRM does not have fails, and the error lists the options. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: update_case
NameTypeDescription
record_id string required string Case record id from list_cases.
status enum enum New, Assigned, Open, Wait for 3rd party, Wait for customer, Resolved or Closed.
priority enum enum Urgent, High, Medium or Low.
group string string Group (team) to assign the case to.
assigned_to string string Person to assign the case to.
sla_name string string Customer SLA to apply.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/vtiger/records/3318/case \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"group":"Billing","priority":"High"}'
Python
result = client.call("vtiger", "update_case", {"record_id":"3318","group":"Billing","priority":"High"})
Node.js
const result = await cotlet.call('vtiger', 'update_case', {"record_id":"3318","group":"Billing","priority":"High"});
CLI
cotlet call vtiger update_case --data '{"record_id":"3318","group":"Billing","priority":"High"}'

Example response

JSON

{
  "record_id": "3318",
  "title": "Invoice 1042 charged twice",
  "status": "New",
  "priority": "High",
  "group": "Billing",
  "assigned_to": null,
  "sla_name": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.