Project

General

Profile

Actions

Architecture #5345

closed

Non used parameters in an API call should lead to an error

Added by Nicolas PERRON almost 10 years ago. Updated 8 months ago.

Status:
Rejected
Priority:
3
Assignee:
-
Category:
API
Target version:
-
Effort required:
Large
Name check:
Fix check:
Regression:
No

Description

After trying to rename a parameter from "rudder_file_edit_footer" to "my_param" with API the result is:

$ curl -k -H "X-API-Token: PojCJDhajkGqVx1TTmiZKNFZORKOYc8X" -X POST https://localhost/rudder/api/2/parameters/rudder_file_edit_footer?prettify=true -d "id=my_param" 

{
  "action": "updateParameter",
  "id": "rudder_file_edit_footer",
  "result": "success",
  "data": {
    "parameters": [
      {
        "id": "rudder_file_edit_footer",
        "value": "### Edited by Rudder ###",
        "description": "Default inform message put in footer of managed files by Rudder",
        "overridable": false
      }
    ]
  }
}

The id has not changed.

If we try to do it manually by the WebUI, this is not possible since the id textbox is not editable. On the Eventlogs, policy generations are logged but not any modification.

I suppose this action with API should return an error, not a success.

Actions

Also available in: Atom PDF