Lead Management

Update a lead management configuration

PUT
/api/lead-management/{id}

Updates the LeadManagement configuration with the given id. Caller must own the configuration. Each field is validated independently; defaultProcess (when supplied) must resolve to an existing Prompt ID.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/lead-management/string" \  -H "Content-Type: application/json" \  -d '{    "isAutopilot": false,    "costPerLead": 15,    "status": "inactive"  }'
{  "success": true,  "message": "Lead management configuration created",  "data": {    "_id": "665f1a0c0e0a4b001a2c9f40",    "configurationName": "Facebook Lead Ad Funnel",    "status": "active"  }}