$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "before_json": "{\"data\": {\"metaobjects\": {\"nodes\": [{\"id\": \"gid://shopify/Metaobject/001\", \"type\": \"author\", \"handle\": \"alex\", \"fields\": [{\"key\": \"friend\", \"type\": \"metaobject_reference\", \"value\": \"gid://shopify/Metaobject/002\"}]}, {\"id\": \"gid://shopify/Metaobject/002\", \"type\": \"author\", \"handle\": \"sam\", \"fields\": []}], \"pageInfo\": {\"hasNextPage\": false}}}}\r\n",
< "proposed_json": "{\"data\": {\"metaobjects\": {\"nodes\": [{\"id\": \"gid://shopify/Metaobject/001\", \"type\": \"author\", \"handle\": \"alex\", \"fields\": [{\"key\": \"friend\", \"type\": \"metaobject_reference\", \"value\": \"gid://shopify/Metaobject/002\"}]}, {\"id\": \"gid://shopify/Metaobject/002\", \"type\": \"author\", \"handle\": \"sam\", \"fields\": []}], \"pageInfo\": {\"hasNextPage\": false}}}}\r\n",
< "policy_json": "{\r\n \"complete_types\": [\r\n \"author\"\r\n ],\r\n \"reference_target_types\": {\r\n \"author\": {\r\n \"friend\": \"author\"\r\n }\r\n }\r\n}\r\n"
<}
<EOF
$curl "https://api.apify.com/v2/actors/biztoolsus~shopify-metaobject-reference-delta/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'