Syvizo

Change Parameter



When to use: Use this policy when you want to change the value of a parameter in request message before sending it to backend API call or for next policies in the flow



Details

Parameters and Headers are received as part of the request. Headers are a part of the request and parameters can be query parameters or form parameters. 

If you need to make any changes to headers or parameters including adding, deleting them or change their values, you can use “Change Parameter” policy.


Configuration

The configuration fields for the policy are:

[* Indicates a mandatory field]

Name *: Display name of the policy

Description: Description of policy

Enabled: Flag to indicate if the policy is enabled. If this field is not checked, the policy will be ignored at runtime and any fields from its output will contain a default initial value

Continue on Error: Flag to indicate that the flow should continue even if this policy throws an error

Type: Type of the parameter. The available values are Header, Query Parameter, Form Parameter and Any.

Action: Action can be specified to one of “Add”, “Add or Update”, “Update” and “Delete



Input fields

name: Name of the header or parameter to be changed

newValue: The value that will be set to the header or parameter in case action other than Delete.



Output fields

actionTaken : Specified what action is taken on the header or parameter while processing this policy