curl --request PATCH \
--url https://management.scanova.io/lead/{lead_list_id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing Lead List"
}
'{
"id": 262,
"lead_id": "Lecb6be7be43b4724",
"name": "Onit Lead",
"created": "2023-08-04T13:51:51.959871+05:30",
"modified": "2023-08-04T13:51:51.959871+05:30",
"is_active": true,
"usage_count": 5,
"entries_count": 7,
"linked_qrs": [
{
"qr_code__id": 150157,
"qr_code__qrid": "Qff07909fe1c14923",
"qr_code__name": "Androd",
"qr_code__qr_type": "dy"
}
],
"data": "[{\"type\":\"page_title\",\"data\":{\"title\":\"<p>TEST FOR NEW LEAD NOPW</p>\\n\",\"cardStyle\":{\"backgroundColor\":\"#F8F8F8\"}}},{\"type\":\"page_layout\",\"data\":{\"backgroundColor\":\"0a2e9b\"}},{\"type\":\"description_box\",\"data\":{\"text\":\"<p>NEW LEAD NEW</p>\\n\",\"cardStyle\":{\"backgroundColor\":\"#F8F8F8\"}}},{\"type\":\"banner_images\",\"data\":{\"images\":[{\"url\":\"https://qcg7-storage-staging.s3.amazonaws.com/media/uploads/560/2023/06/20230620_462316_qrcode.png\"}]}},{\"type\":\"lead_form\",\"data\":{\"description\":\"Food Preference\",\"questions\":[{\"question\":\"FOOD PREFERENCES\",\"answer\":{\"type\":\"multipleChoice\",\"data\":[{\"option\":\"VEG\"},{\"option\":\"NON VEG\"}]},\"isRequired\":true}]}},{\"type\":\"submit_button\",\"data\":{\"label\":\"SUBMIT\",\"color\":{\"label\":\"#585858\",\"button\":\"#F8F8F8\",\"border\":\"#F8F8F8\"},\"buttonStyle\":{\"borderWidth\":1,\"borderRadius\":50}}},{\"type\":\"skip_button\",\"data\":{\"label\":\"SKIP\",\"color\":{\"label\":\"#585858\",\"button\":\"#F8F8F8\",\"border\":\"#F8F8F8\"},\"buttonStyle\":{\"borderWidth\":1,\"borderRadius\":50}}}]",
"webhooks": [
{
"id": 16,
"url": "https://webhook.site/8e85fafd-a4d0-433b-bf80-5bb11eed4ea6",
"created": "2023-06-20T16:24:00.060154+05:30",
"modified": "2023-06-20T16:24:03.157414+05:30"
}
]
}Update Lead List
Updates a lead list’s name or active status. Requires authentication.
curl --request PATCH \
--url https://management.scanova.io/lead/{lead_list_id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Marketing Lead List"
}
'{
"id": 262,
"lead_id": "Lecb6be7be43b4724",
"name": "Onit Lead",
"created": "2023-08-04T13:51:51.959871+05:30",
"modified": "2023-08-04T13:51:51.959871+05:30",
"is_active": true,
"usage_count": 5,
"entries_count": 7,
"linked_qrs": [
{
"qr_code__id": 150157,
"qr_code__qrid": "Qff07909fe1c14923",
"qr_code__name": "Androd",
"qr_code__qr_type": "dy"
}
],
"data": "[{\"type\":\"page_title\",\"data\":{\"title\":\"<p>TEST FOR NEW LEAD NOPW</p>\\n\",\"cardStyle\":{\"backgroundColor\":\"#F8F8F8\"}}},{\"type\":\"page_layout\",\"data\":{\"backgroundColor\":\"0a2e9b\"}},{\"type\":\"description_box\",\"data\":{\"text\":\"<p>NEW LEAD NEW</p>\\n\",\"cardStyle\":{\"backgroundColor\":\"#F8F8F8\"}}},{\"type\":\"banner_images\",\"data\":{\"images\":[{\"url\":\"https://qcg7-storage-staging.s3.amazonaws.com/media/uploads/560/2023/06/20230620_462316_qrcode.png\"}]}},{\"type\":\"lead_form\",\"data\":{\"description\":\"Food Preference\",\"questions\":[{\"question\":\"FOOD PREFERENCES\",\"answer\":{\"type\":\"multipleChoice\",\"data\":[{\"option\":\"VEG\"},{\"option\":\"NON VEG\"}]},\"isRequired\":true}]}},{\"type\":\"submit_button\",\"data\":{\"label\":\"SUBMIT\",\"color\":{\"label\":\"#585858\",\"button\":\"#F8F8F8\",\"border\":\"#F8F8F8\"},\"buttonStyle\":{\"borderWidth\":1,\"borderRadius\":50}}},{\"type\":\"skip_button\",\"data\":{\"label\":\"SKIP\",\"color\":{\"label\":\"#585858\",\"button\":\"#F8F8F8\",\"border\":\"#F8F8F8\"},\"buttonStyle\":{\"borderWidth\":1,\"borderRadius\":50}}}]",
"webhooks": [
{
"id": 16,
"url": "https://webhook.site/8e85fafd-a4d0-433b-bf80-5bb11eed4ea6",
"created": "2023-06-20T16:24:00.060154+05:30",
"modified": "2023-06-20T16:24:03.157414+05:30"
}
]
}Overview
Updates a lead list’s name or active status. This endpoint allows you to modify basic properties of an existing lead list.Path Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
lead_list_id | string | Yes | Lead list ID (lead_id) | Lecb6be7be43b4724 |
Request Body
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
name | string | No | Name of the lead list | "Marketing Lead List" |
is_active | boolean | No | Whether to activate or deactivate the lead list | true or false |
Examples
Update Lead List Name
curl -X PATCH "https://management.scanova.io/lead/Lecb6be7be43b4724/" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Marketing Lead List"
}'
Activate/Deactivate Lead List
curl -X PATCH "https://management.scanova.io/lead/Lecb6be7be43b4724/" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"is_active": true
}'
Update Both Name and Status
curl -X PATCH "https://management.scanova.io/lead/Lecb6be7be43b4724/" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Lead List Name",
"is_active": false
}'
Response
Returns the updated lead list object with all current details.Use Cases
- Name Management: Update lead list names for better organization
- Status Control: Activate or deactivate lead lists as needed
- Bulk Operations: Update multiple lead lists programmatically
- Workflow Management: Control lead list availability based on campaigns
is_active: false), it will no longer capture new leads, but existing data remains intact. You can reactivate it later by setting is_active: true.Authorizations
API key authentication. Enter your API key directly in the Authorization header.
Path Parameters
Lead list ID (lead_id)
Body
Response
Lead list updated successfully
Internal lead list ID
262
Unique lead list identifier
"Lecb6be7be43b4724"
Name of the lead list
"Onit Lead"
Creation timestamp
"2023-08-04T13:51:51.959871+05:30"
Last modification timestamp
"2023-08-04T13:51:51.959871+05:30"
Whether the lead list is active
true
Number of times this lead list has been used
5
Number of lead entries in this list
7
QR codes linked to this lead list
Show child attributes
Show child attributes
JSON string containing lead list form configuration
"[{\"type\":\"page_title\",\"data\":{\"title\":\"<p>TEST FOR NEW LEAD NOPW</p>\\n\",\"cardStyle\":{\"backgroundColor\":\"#F8F8F8\"}}},{\"type\":\"page_layout\",\"data\":{\"backgroundColor\":\"0a2e9b\"}},{\"type\":\"description_box\",\"data\":{\"text\":\"<p>NEW LEAD NEW</p>\\n\",\"cardStyle\":{\"backgroundColor\":\"#F8F8F8\"}}},{\"type\":\"banner_images\",\"data\":{\"images\":[{\"url\":\"https://qcg7-storage-staging.s3.amazonaws.com/media/uploads/560/2023/06/20230620_462316_qrcode.png\"}]}},{\"type\":\"lead_form\",\"data\":{\"description\":\"Food Preference\",\"questions\":[{\"question\":\"FOOD PREFERENCES\",\"answer\":{\"type\":\"multipleChoice\",\"data\":[{\"option\":\"VEG\"},{\"option\":\"NON VEG\"}]},\"isRequired\":true}]}},{\"type\":\"submit_button\",\"data\":{\"label\":\"SUBMIT\",\"color\":{\"label\":\"#585858\",\"button\":\"#F8F8F8\",\"border\":\"#F8F8F8\"},\"buttonStyle\":{\"borderWidth\":1,\"borderRadius\":50}}},{\"type\":\"skip_button\",\"data\":{\"label\":\"SKIP\",\"color\":{\"label\":\"#585858\",\"button\":\"#F8F8F8\",\"border\":\"#F8F8F8\"},\"buttonStyle\":{\"borderWidth\":1,\"borderRadius\":50}}}]"
Webhooks configured for this lead list
Show child attributes
Show child attributes
Was this page helpful?