如何在 Marketo 中使用 REST API 将潜在客户作为成员添加到程序中?

How do use REST API in Marketo to add leads as members into Programs?

如何在 Marketo 中使用 REST API 将潜在客户作为成员添加到程序中?

我使用 REST 创建了文件夹、程序和线索 API。

现在我想通过将他们的 ID 作为成员添加到程序中来添加特定的潜在客户。

如何使用 REST API 或我需要使用其他方法?

请告诉我。

使用"Change Lead Program Status"终点:http://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Leads/changeLeadProgramStatusUsingPOST

调用示例: POST/rest/v1/leads/programs/{programId}/status.json

data={
    "status": "Registered",
    "input": [
        {"id": 123}
    ]
}

因此您最多可以添加 300 个线索 ID,但一次只能添加 1 个状态(针对 1 个项目)。