How this template works
APIs Selection
The template uses API selection filters to specify the criteria for selecting the API requests to be executed. In this case, the filters include checking the response code to be between 200 and 300, and extracting the value of the "user" or "customer" parameter as the "user_context" for further use.
Execute request
The template uses a single request execution type, which means it will execute a single API request. The request is defined using the "add_query_param" action, where the value of the "user_context.key" is set to the extracted value from the API selection filters.
Validation
After executing the request, the template performs validation on the response. It checks that the response code is between 200 and 300, and also checks the response payload for two conditions. Firstly, it checks that the percentage match of the response payload with the original response payload is less than 50%. Secondly, it checks that the length of the response payload is greater than 0.