I am running simple Azure Graph API query with JSON body
{
"subscriptions": [
"{{subscriptionId}}"
],
"query": "Resources| project tags | summarize buildschema(tags)"
}
}
but I need to change it to
{
"subscriptions": [
"{{subscriptionId}}"
],
"query": "{{query}}"
}
}
with {{query}} set in pre-request Script, tried both below
var query = JSON.stringify("Resources| project tags | summarize buildschema(tags)")
var query = "Resources| project tags | summarize buildschema(tags)"
Unfortunately getting Badrequest error