Initiate bulk delete
documentedInitiate bulk deletes.
POST /bulk_action/delete/Bulk Actionsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.close.com/api/v1/bulk_action/delete/" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"s_query": {"type": "and", "queries": [ {"type": "object_type", "object_type": "lead"}, {"type": "field_condition", "field": {"type": "regular_field", "object_type": "lead", "field_name": "status"}, "condition": {"type": "text", "mode": "full_words", "value": "{{$status_value}}"}} ]}, "results_limit": {{$limit}}, "sort": [ {"direction": "asc", "field": {"object_type": "lead", "type": "regular_field", "field_name": "id"}}], "send_done_email": false }'