Send notification from outside script

Hi!
I have a script running on a server in the same network as my Home Assistant server.

In the script i want to send a notification using Home Assistant. I read in another thread (Link) to use the RestAPI. I got this working but only if i hardcode the message and data in the event. Now i want to be able to include the message when calling the RestAPI and I also want to include an attachment in the notification as below.

- alias: Notify iOS app
    trigger:
      ...
    action:
      service: notify.ios_robbies_iphone_7_plus
      data:
        message: "Something happened at home!""
        data:
          attachment:
            url: https://67.media.tumblr.com/ab04c028a5244377a0ab96e73915e584/tumblr_nfn3ztLjxk1tq4of6o1_400.gif
            content-type: gif
            hide-thumbnail: false

How can I include the message that i want to be in the notification when i call the event using the HTTP API?

Figured it out.

curl --verbose POST -H "x-ha-access: PW" -H "Content-Type: application/json" http://10.0.0.80:8123/api/services/notify/iOS -d "{ 
         \"message\": \"Dörrklockan ringer!\",
         \"data\": {
           \"attachment\": {
             \"content-type\": \"jpeg\",
             \"hide-thumbnail\": false
           },
           \"push\": {
             \"category\": \"camera\"
           },
           \"entity_id\": \"camera.huvudentren\"
         }
       }"