Question: Is it possible to submit a raw JSON payl...
# general
d
Question: Is it possible to submit a raw JSON payload into a HTTP Request i.e. the only payload defined in the action is {{ .my_json.array | as_object }}? Currently I can't find a way of doing that as it seems to require me to enter it as a value in a KVP, and the receiving webhook doesn't expect any root level key.
m
Hey! Yep, I think you can do this just hardcoding it in as a value and not a kvp e.g.
Copy code
{
  "agents": [
    {
      "disabled": false,
      "name": "echo",
      "options": "{\"url\":\"<https://snowy-pond-6977.tines.io/example-echo>\",\"content_type\":\"json\",\"method\":\"post\",\"payload\":\"{{payload | as_object}}\"}",
      "position": {
        "x": 240,
        "y": 270
      },
      "type": "httpRequest"
    },
    {
      "disabled": false,
      "name": "payload",
      "options": "{\"mode\":\"message_only\",\"payload\":{\"message\":\"This is an automatically generated message from Tines\",\"abcd\":\"233\"}}",
      "position": {
        "x": 240,
        "y": 150
      },
      "type": "eventTransformation"
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}