Where do I place my data for my http request?

I see no option for data in the HTTP proxy route
curl --request POST
–url https://onesignal.com/api/v1/notifications
–header ‘Authorization: Basic YOUR_REST_API_KEY’
–header ‘accept: application/json’
–header ‘content-type: application/json’
–data ’
{
“included_segments”: [
“Subscribed Users”
],
“contents”: {
“en”: “English or Any Language Message”,
“es”: “Spanish Message”
}
}

Hi @Pius4109,

Notehub routes don’t let you manually specify the -data argument, as that comes from the Note that is synced with Notehub. You can use JSONata to transform the Note on the fly if needed, but in your example this should all be in the body of your Note:

{
   "included_segments":[
      "Subscribed Users"
   ],
   "contents":{
      "en":"English or Any Language Message",
      "es":"Spanish Message"
   }
}
3 Likes