Project

General

Profile

Actions

Bug #23866

open

Settings API don't answer with an error code if the parameter value is invalid

Added by Nicolas CHARLES 12 months ago. Updated 5 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
API
Target version:
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

Also available in: Atom PDF