Im trying to set request header using property transfer step, but could not get anyway to access headers using JsonPath
.
What to write in highlighted section to access request headers using jsonPath
Please help...
Response structure in Source:
{
"payload": {
"content": {
"reason": "token successfully created",
"success": "true",
"authDetails": {
"accessToken": "MyaccesToken",
"expiresIn": "My ExpiryTime",
"refreshToken": "MyRefreshToken"
}
}
}
}
Request structure in Target field
GET https://Myendpoint/myresouce/etc HTTP/1.1
Header1: myHeader1Value
Header2: **<Im trying to assign "MyaccessToken" in above step to this header>**
Here how you could achieve this:
TOKEN
at project level.Project name
, and select TOKEN
for Property.${#Project#TOKEN}