Is it possible to make a new http request with the data in the responsebody?

Hi.
I want to make two http requests.
Get the json data of the response body from the first request,
I want to use that json data as the value of the header of the second request.

For example:

name: http
schedule: '* * * * *'
urls: ["http://my-first-url.kr"]
check.request:
    method: "POST"
check.response:
    status: 200
    json:
        condition:
            equals:
                myField: '{ myKey: abcd-efgh-defg}'

In the first request I get myKey from the response body.

name: http
schedule: '* * * * *'
urls: ["http://my-second-url.kr"]
check.request:
    method: "POST"
    headers:
        'myKey': 'abcd-efgh-defg'
check.response:
    status: 200

And I want to make this second request with this myKey in the header.

I want to combine these two requests into one.
Is this possible in heartbeat?
If not, can I register issues to add new features to GitHub?

Unfortunately we don't support this today, but yes, please open an issue for this feature! It makes the most sense to open the issue on our uptime repo here: https://github.com/elastic/uptime

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