# Watcher webhook issue with call include triple double quote

**URL:** <https://discuss.elastic.co/t/watcher-webhook-issue-with-call-include-triple-double-quote/315387>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [September 28, 2022, 3:43pm UTC](https://discuss.elastic.co/t/watcher-webhook-issue-with-call-include-triple-double-quote/315387 "2022-09-28T15:43:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnJ\_M](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@JohnJ\_M](https://discuss.elastic.co/u/JohnJ_M)\
**Post date:** [September 28, 2022, 3:43pm UTC](https://discuss.elastic.co/t/watcher-webhook-issue-with-call-include-triple-double-quote/315387/1 "2022-09-28T15:43:03Z")

</div>

I am working on a watcher that create watcher depending an index. I use for that a weebhook call in the watcher.

Problem:  
the webhook call need the use of """ for the body part:

```auto
      "webhook": {
        "scheme": "https",
        "host": "xxxx",
        "port": xxxx,
        "method": "put",
        "path": "_watcher/watch/{{ctx.payload._source.watchername}}",
        "params": {},
        "headers": {},
        "body" : """ xxxxxxxxxxxxxxxxxxxxxxxxx """"      
       }
    }
  }

```

The problem is that in the body send to the weebhook I also have a body with a sequence of """:

```auto

      "webhook": {
        "scheme": "https",
        "host": "xxxx",
        "port": xxxx,
        "method": "put",
        "path": "_watcher/watch/{{ctx.payload._source.watchername}}",
        "params": {},
        "headers": {},
        "body" : """ xxxx {body : """ zzzzzz """ } """"      
       }
    }
  }

```

Well, of course the """ inside the second body interfer with the first one...

check in the forum, in the language ref, I haven't been able to find any solution.

Escaping the " in the second body cal, using \"\"\" does not work. I tried using ', or `, it did not work either.

As anybody a solution for that?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 26, 2022, 3:43pm UTC](https://discuss.elastic.co/t/watcher-webhook-issue-with-call-include-triple-double-quote/315387/2 "2022-10-26T15:43:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
