Records›Update Record Information

Update Record Information

Update fields on an existing record. The request is queued for processing.

POSThttps://secure-api.setshape.com/api/update/lead/info/{crmid}

Replace {crmid} with your CRM ID, the Shape system ID that belongs to your API key. Send the standard headers on every request: Authorization: YOUR_API_AUTHORIZATION_KEY and Content-Type: application/json. See Authentication.

Choosing which record to update

Identify the record with one of these fields, not both:

Field Available on Description
lead_id All systems The record’s Shape ID. The older alias leadid is also accepted.
trkloannnumber Mortgage systems only The record’s tracking loan number. Saves you looking up the record ID first.

If both are sent, lead_id is used. Loan numbers should be unique in your system; if more than one record has the same loan number, only one is updated. A request with neither returns 400 {"message": "Send lead_id or trkloannnumber to identify the record."}.

Check the spelling. The field is trkloannnumber, with three n’s in a row (“loan” + “number”).

Example request

{
  "trkloannnumber": "786-601-1052",
  "firstname": "Jordan",
  "lastname": "Sample",
  "phone": "5550100123",
  "email": "jordan.sample@example.com"
}
{
  "lead_id": "280326",
  "firstname": "Jordan",
  "phone": "5550100123"
}

Response

Updates are queued and applied shortly after. The response confirms the request was received.
{
  "message": "Your request has been queued.",
  "lead_id": 280326
}

This is also the response when no record matches the loan number. To check the result, open the record’s Activity tab (see Troubleshooting).

Clearing a field

To erase a field’s current value, send {delete} as its value. Fields you leave out aren’t changed.

{
  "lead_id": "280326",
  "firstname": "Jordan",
  "lastname": "{delete}",
  "phone": "5550100123"
}
  • Send {delete} exactly, in lowercase.
  • An empty string ("") doesn’t change a field. To clear a field, send {delete}.
  • {delete} works on text, number, date, dropdown, tag and custom fields, and removes a referral partner, buying agent or selling agent link.
  • It’s ignored for statuses (every record keeps one), note fields and assigned users. To remove an assigned user, send -1.
  • It’s ignored for required fields: firstname, lastname and email.

Dropdown fields only accept values that already exist as options in Shape. Requests can’t add new options to a dropdown.

On Add Records and Update Record Information, a value that doesn’t match one of the field’s options clears the field.

Send each value exactly as it appears in Shape. Matching ignores upper and lower case, so purchase matches the option Purchase. To see a dropdown’s options, open that field on any record in Shape and check its list.

Check dropdown values before you send them. A successful response doesn’t mean every dropdown value was saved. A value that doesn’t match an option clears the field.

Writing multiple policies (insurance systems only)

You can write up to five policies to a record in one request. Each policy field ends with a number from 1 to 5, and fields with the same number make up one policy.

Policy detail Field name (policy 1)
Policy type pol_policytype1
Carrier name pol_policyCarrierName1
Premium pol_policypremium1
Expiration date pol_policyExpirationDate1
Date won pol_dateWon1
Number of items pol_policyNumberOfItems1

For policy 2, change the 1 to 2, and so on up to 5. Field names are case-sensitive and their capitalization varies, so copy them exactly. Dates use YYYY-MM-DD. Send the policy type and carrier name exactly as they appear in Shape; you’ll find the options in the Policy Type and Carrier fields on any record.

{
  "lead_id": "493099",
  "pol_policytype1": "Auto",
  "pol_policyCarrierName1": "Example Insurance Co.",
  "pol_policypremium1": "1000",
  "pol_policyExpirationDate1": "2027-07-12",
  "pol_dateWon1": "2026-07-12",
  "pol_policyNumberOfItems1": "2",
  "pol_policytype2": "Home",
  "pol_policyCarrierName2": "Example Insurance Co.",
  "pol_policypremium2": "1500",
  "pol_policyExpirationDate2": "2027-07-05"
}
Each request adds new policies to the record. It doesn’t change or replace the policies already there, and {delete} doesn’t remove a policy. To change or remove a policy, edit it in Shape.

Linking partners and agents

To link a referral partner, buying agent or selling agent, see Link Referral Partners and Agents.

Finding field names

Field names come from your Marketing Sources settings. See Finding field names on the Introduction for the steps.