Last updated 3 days ago
curl -X POST "https://api.bird.com/workspaces/a1405560-c8d3-4b1a-877d-3f449ad95352/conversation-allowblock-rules-bulk" \ -H "Content-Type: text/csv" \ -H "Authorization: AccessKey abcd" \ -d 'test@example.com,allow'
{ "workspaceId": "6b1908bd-2bc7-409e-bab4-ccfcd3ec69b9", "bulkId": "875cd425-d62d-4d16-b3af-61dafe71ea2d", "currentIndex": 0, "total": 1, "status": "pending", "errors": null, "updatedAt": "2024-11-29T15:45:56.780546536Z" }
Add allow/block to bulk process via a csv file.
The workspace ID
The Allow/Block rule bulk insert progress.
const response = await fetch('https://api.bird.com/workspaces/{workspaceId}/conversation-allowblock-rules-bulk', { method: 'POST', headers: { "Content-Type": "text/csv" }, body: JSON.stringify("text"), }); const data = await response.json();
{ "workspaceId": "123e4567-e89b-12d3-a456-426614174000", "bulkId": "123e4567-e89b-12d3-a456-426614174000", "currentIndex": 0, "total": 0, "status": "pending", "errors": [ "text" ], "updatedAt": "2024-12-03T15:01:01.070Z" }