SmartLead icon

SmartLead

Interact with SmartLead API (campaigns, leads, inbox, analytics, delivery, and webhooks)

Actions144

Lead → Update Category

AI-generated

Summary

Updates the category of a specific lead within a campaign

Inputs

  • campaignId (required) — Identifier of the campaign that contains the lead
  • leadId (required) — Identifier of the lead whose category should be updated
  • requestBody — JSON payload containing the new category and any additional fields required by the operation
  • requestOptions — Optional request-level settings such as batching, proxy, timeout, and SSL verification
  • allowUnauthorizedCerts — Whether to skip SSL certificate validation for the request
  • proxy — HTTP proxy URL to use for the request
  • timeout — Request timeout in milliseconds

Output shape

an updated lead object

The response contains the updated lead record (including the new category); may include pagination or error envelope depending on the operation

Examples

Example 1: Set the category of lead 12345 in campaign 6789 to 'Hot'

campaignId = 6789, leadId = 12345, requestBody = {"category":"Hot"}

Example 2: Update lead category with custom batching options

campaignId = 6789, leadId = 12345, requestOptions = {"batching": {"batchSize": 100}}

Example 3: Update category while ignoring SSL errors

campaignId = 6789, leadId = 12345, requestBody = {"category":"Warm"}, allowUnauthorizedCerts = true

Links

Discussion