Hiya,
The Structural Modifiers (including Data Driven Nodes aka DDNs) were implemented some time ago, when we focussed more on the ZAP UI.
A quick way to use the ZAP Desktop to generate the right regex is:
- Request the URL in ZAP, e.g. https://example.com/api/v4/leads/pipelines/pipeline_id/statuses (it doesnt actually matter that this returns a 404;)
- Add the domain to a context e.g. the Default Context
- Right click on the relevant node and select: Flag as Context -> Default Context: Data Driven Node
- Select the new Structural Modifier and click on "Modify..."
- Copy the regex
In this case the regex is
ZAP needs to know which part of the path is to be treated as the DDN.
The 3 regex groups represent the prefix, the DDN and the postfix.
I can't remember offhand what 2 regex groups represent, maybe just the prefix and DDN, where it appears at the end?
Does that make sense?
Simon