If query data or form data is sent, request_data context variable gets populated.
If JSON body is sent request_data is empty.
Why request_data isn’t populated from JSON body?
Hi @alolic, welcome to the community. The request_data
context variable only gets populated with any query data or form data. This is done by design.
If using the Request Body middleware is not enough for your use case, then you can create a custom middleware/plugin to retrieve the body.
Hope this helps