Update a record

Change fields of one record, for example Status, Sales Stage or Next Step.

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

write

Changes only the fields you pass and returns the record afterwards. It does not message anyone itself, but workflows your admin set up in SuiteCRM still run on the change. It is undone by changing the field back, so it does not wait for your OK.

Parameters

Parameters: update_record
NameTypeDescription
module string required string Module: Leads, Contacts, Accounts, Opportunities, Cases, Tasks, Calls, Meetings or Notes.
record_id string required string Record ID from list_records.
fields object required object Field names and new values as in the record's Edit View, for example {"status": "Dead"}.

Request

cURL
curl -X PATCH https://cotlet.dev/api/v1/suitecrm/records/record_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"module":"module","fields":"fields"}'
Python
result = client.call("suitecrm", "update_record", {"module":"module","record_id":"record_8c41d2","fields":"fields"})
Node.js
const result = await cotlet.call('suitecrm', 'update_record', {"module":"module","record_id":"record_8c41d2","fields":"fields"});
CLI
cotlet call suitecrm update_record --data '{"module":"module","record_id":"record_8c41d2","fields":"fields"}'

Example response

JSON

{
  "module": "Leads",
  "record_id": "e91d3a77-0c5b-4d28-b6f1-7a2c8e4d9013",
  "changed": {
    "status": "Dead"
  },
  "updated_at": "2026-10-23T09:12:00"
}

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.