This message was deleted.
# help
s
This message was deleted.
l
I had a little play and this is what I came up with:
Copy code
{
  "name": "email_happypath",
  "request": {
    "method": "POST",
    "url": "/send/email",
    "bodyPatterns": [
      {
        "matchesJsonPath": "$[?(@.phone =~ /^5\\d{9}$/i)]"
      }
    ]
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "jsonBody": {
      "status": "OK"
    }
  }
}
I left out your
bodyFileName
part just so I could test this out so you will have to replace the
jsonBody
in the above example. I think that should work though.
a
It worked. Thank you for your help @Lee Turner 🙂
👍 1