Run a Linux CURL Command on my Raspberry Pi

Description

Experience Level: Entry

At this time, I want to manually run a command, from my Raspberry Pi. That command needs to be something we can change later, so that it runs, when an interrupt is triggered. But for a Proof of Concept, I would like to run a script, or command. I am thinking of a Linux CURL command.

The command I want to run is;
db.users.insert({customer_name:"XYZ Industries", site_id:"12345678", part_code:"ABCD", ip_address:"11.22.33.44", mac_id:"00.33.44.55"});