Actions
Bug #23866
openSettings API don't answer with an error code if the parameter value is invalid
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
If we set setting with invalid parameters value (True instead of true) we don't get an error code, but a message with error
curl -k --request POST --header "X-API-Token: $(cat /var/rudder/run/api-token)" "https://localhost/rudder/api/latest/settings/send_metrics" --data "value=True" {"action":"modifySetting","id":"send_metrics","result":"error","errorDetails":"Could not modify parameter 'send_metrics' <- value for 'send metrics' settings should be 'no', 'minimal' or 'complete' instead of True"}
Actions