Leads in campaigns
PATCH
/campaigns/{id}/leads/{leadId}

Only interest is editable here. Update lead fields and customVariables via PATCH /leads/{id} — they're shared across every campaign the lead is in.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created under Settings → API & Webhooks.

In: header

Path Parameters

id*string
leadId*string

The lead's id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Only interest is editable on a lead's campaign membership. Update lead fields and customVariables via PATCH /leads/{id}.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/campaigns/string/leads/string" \  -H "Content-Type: application/json" \  -d '{    "interest": "interested"  }'
{  "data": {    "campaignId": "string",    "leadId": "string",    "linkedinAccountId": "string",    "status": "pending",    "firstName": "string",    "lastName": "string",    "headline": "string",    "company": "string",    "picture": "string",    "profileUrl": "string",    "publicIdentifier": "string",    "openProfile": true,    "customVariables": {      "property1": "string",      "property2": "string"    },    "interest": "interested",    "interestBy": "manual",    "currentStepId": "string",    "waitUntil": "2019-08-24T14:15:22Z",    "invitationSentAt": "2019-08-24T14:15:22Z",    "invitationAccepted": true,    "invitationAcceptedAt": "2019-08-24T14:15:22Z",    "invitationWithdrawnAt": "2019-08-24T14:15:22Z",    "messageSentAt": "2019-08-24T14:15:22Z",    "lastReplyAt": "2019-08-24T14:15:22Z",    "finishedAt": "2019-08-24T14:15:22Z",    "error": "string",    "createdAt": "2019-08-24T14:15:22Z",    "history": [      {}    ]  }}