replace_reg_uss_config_params_m Sample Call and Response
This example shows a call that replaces the parameter name-value pairs in a particular configuration set with a specified set of new parameter name-value pairs, based on the replace_reg_uss_config_params_m method defined in plsql_m_r73.yml. This method operates on a named configuration set, identified by set_name, which is distinct from the session-scoped parameters that replace_reg_uss_params_m manages.
This example includes every required field for the method; there are no optional fields to leave out beyond the standard envelope fields.
Sample call
{
"rest_call": "replace_reg_uss_config_params_m",
"output_format": "json",
"client_no": 66123,
"auth_key": "sample-auth-key-not-real-000111",
"set_name": "checkout_ui_defaults",
"in_reg_uss_config_params": [
{
"param_name": "default_currency",
"param_val": "USD"
},
{
"param_name": "max_retry_attempts",
"param_val": "3"
}
]
}
The set_name field identifies the client-defined configuration set whose parameters are being replaced; here it identifies a set of checkout user-interface defaults. The in_reg_uss_config_params field is an array, since a configuration set holds more than one name-value pair; this example includes two representative entries. Every param_name and param_val pair supplied in this array replaces the entire prior contents of the named configuration set, so any parameter not included here is removed from the set. The auth_key and output_format fields sit outside the method's own documented arguments; auth_key authenticates the caller, and output_format, together with rest_call, forms the envelope that the REST gateway adds to every call, requesting a JSON response.
Sample response
{
"error_code": 0,
"error_msg": "OK"
}
An error_code value of 0 and an error_msg value of "OK" indicate that Aria successfully replaced the parameters in the named configuration set. This method returns no fields beyond the error indicators; this example does not include the error_details field, since that field is for internal use and does not appear in a client-facing response.