Hello,
I’m having problems getting all the options in urlBackgroundOptions working. The HTTP method seems to work, but for the life of me I cannot seem to get headers or the httpBody working.
Here’s the format of the input JSON:
{
"title": "Hello",
"text": "Message",
"actions": [
{
"name": "Some Action",
"url": "https://1e33-56-106-55-21.ngrok-free.app/foo",
"urlBackgroundOptions": {
"httpMethod": "POST",
"httpHeaders": {
"Content-Type": "application/json",
"X-Auth-Token": "xxxxxxyyyyyyy"
},
"httpBody": "{\"foo\":\"bar\"}"
}
}
]
}
and here’s the response I see:
{
"method": "POST",
"path": "/foo",
"full_path": "/foo",
"query_string": "",
"headers": {
"HTTP_HOST": "1e33-38-106-140-21.ngrok-free.app",
"HTTP_USER_AGENT": "Pushcut/368 CFNetwork/1494.0.7 Darwin/23.4.0",
"HTTP_ACCEPT": "*/*",
"HTTP_ACCEPT_ENCODING": "gzip, deflate, br",
"HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
"HTTP_X_FORWARDED_FOR": "99.130.66.10",
"HTTP_X_FORWARDED_HOST": "1e33-38-106-140-21.ngrok-free.app",
"HTTP_X_FORWARDED_PROTO": "https",
"HTTP_VERSION": "HTTP/1.1"
},
"params": {
},
"body": ""
}
If I create the action directly in pushcut itself, it all works, but I want my actions to be dynamically built, so that won’t work. My fallback is to have it call a Shortcut which also works, but that’s another component I’d rather not include if I don’t have to.
Thanks,
M