JavaScript SDK: swarmhit.leads.update(leadId, params)
Edit a lead's fields and/or replace its manual tags.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Any subset of these fields.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/leads/string" \ -H "Content-Type: application/json" \ -d '{ "jobTitle": "VP Engineering", "tags": [ "warm", "q3" ] }'{ "data": { "id": "string", "firstName": "string", "lastName": "string", "headline": "string", "jobTitle": "string", "company": "string", "email": "string", "phone": "string", "emailStatus": "bounced", "emailOptOut": true, "location": "string", "picture": "string", "notes": "string", "profileUrl": "string", "publicIdentifier": "string", "openProfile": true, "tags": [ "string" ], "autoTags": [ "string" ], "listIds": [ "string" ], "campaignIds": [ "string" ], "customVariables": { "property1": "string", "property2": "string" }, "source": "string", "lastActivityAt": "2019-08-24T14:15:22Z", "enrichedAt": "2019-08-24T14:15:22Z", "enrichment": { "email": { "status": "pending", "at": "2019-08-24T14:15:22Z", "reason": "no_credits" }, "phone": { "status": "pending", "at": "2019-08-24T14:15:22Z", "reason": "no_credits" } }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}