This message was deleted.
# help
s
This message was deleted.
t
If I understand correctly - that you want the output you specified to be your response body, you can use the
regexExtract
and
jsonPath
helpers e.g.
Copy code
{{#trim}}
{{regexExtract (jsonPath request.body '$.id') '(.+)_(.+)' 'parts'}}
{
    "payload": {
    	 "cluster": "{{parts.1}}",
    }
}
{{/trim}}
n
Hi Tom , You are great . Thanks for support ! I spent a day to find it . You solved the problem . Thanks
😁 1
m
Hi @Tom , I am also looking for the same solution but in my case the ID is a header so how to pass that header value to regexExtract ?