Notify.xmpp: How To Send Image From Service Dev Tool?

I have Prosody setup in a separate Linux container. I want to be able to send an image via the service dev tool in Home Assistant. I know that the following YAML code translates to JSON code as follows:

  data:
    message: "Hello, XMPP!"

{"message":"Hello, XMPP!"}

How do I specify either a “url” or a “path” to a file for sending an image through XMPP?

I did get extra keys not allowed message in a log:

Invalid service data for notify.xmpp: extra keys not allowed @ data['path']. Got '/opt/homeassistant/GraysonPeddie.jpg'

According to the XMPP documentation, here’s the YAML code I’m referring to:

      data:
        title: ""
        message: ""
        data:
          path: "/home/homeassistant/super_view.jpg"

How can I specify a path in a JSON format when using a service dev tool to call notify.xmpp?

PS: “xmpp” is the name of the entity I’ve chosen for the Jabber component.

I think you need to remove the first data: when you use the dev tool. Also the path line should be in {} for JSON I think.
Try:

    {
        title: "",
        message: "",
        data:{
          path: "/home/homeassistant/super_view.jpg"
         }
   }

Please let me know if you have success. I’m trying to upload a file with xmpp and I keep getting an error:
UploadServiceNotFound: could not upload file

Did you have to add any other python libraries to allow the upload?

Looks like I don’t have upload configured however I’m able to see the message that I typed:

{"message":"Image of Grayson Peddie","data":{"path":"/opt/homeassistant/GraysonPeddie.jpg"}}

Thanks for the correct code. Will need to configure upload support in Prosody which is what I use.