Update many records in one request. Send a JSON array of record objects.
POSThttps://secure-api.setshape.com/api/leads/bulk/update/{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.Body parameters
Every row must include lead_id (the aliases id and leadid are also accepted). trkloannnumber isn’t accepted here.
| Field | Requirement | Description |
|---|---|---|
| Top-level JSON array | Required | An array of record objects. |
lead_id |
Required | Shape record ID, on every row. |
| Your system’s fields | Optional | Fields to update; {delete} clears a value. |
HTTP
200 means Shape accepted and processed the bulk request. It doesn’t confirm that every individual record updated.Example request
[
{
"lead_id": 281944,
"firstname": "Jordan",
"lastname": "{delete}"
},
{
"lead_id": 281945,
"phone": "5550100124"
}
]
Example response
{
"message": "Records Updated successfully",
"columns_not_found": ["favoritecolor"],
"lead_ids": [281944, 281945]
}
lead_ids lists the record IDs you sent, and columns_not_found lists field names Shape didn’t recognize, so check them for typos.
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,lastnameandemail.
Linking partners and agents
To link a referral partner, buying agent or selling agent, see Link Referral Partners and Agents.