$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "before_json": "{\"status\": \"COMPLETE\", \"results\": [{\"from\": {\"id\": \"001\"}, \"to\": [{\"toObjectId\": 7, \"associationTypes\": [{\"category\": \"USER_DEFINED\", \"typeId\": 123, \"label\": \"Client\"}]}]}]}\r\n",
< "proposed_json": "{\"status\": \"COMPLETE\", \"results\": [{\"from\": {\"id\": \"001\"}, \"to\": [{\"toObjectId\": 7, \"associationTypes\": [{\"category\": \"USER_DEFINED\", \"typeId\": 123, \"label\": \"Client\"}]}]}]}\r\n",
< "policy_json": "{\"from_object_type\": \"contacts\", \"to_object_type\": \"companies\", \"queried_from_ids\": [\"001\"]}\r\n"
<}
<EOF
$curl "https://api.apify.com/v2/actors/biztoolsus~hubspot-association-pair-delta/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'