{
  "algorithm": {
    "parameters": [
      {
        "name": "planId",
        "type": "string"
      },
      {
        "name": "maingoalId",
        "type": "string"
      },
      {
        "name": "goalId",
        "type": "string"
      },
      {
        "name": "filterId",
        "type": "string"
      },
      {
        "name": "value",
        "type": "GoalFilterEdition"
      }
    ],
    "statements": [],
    "typeReturn": "GoalFilter",
    "variables": []
  },
  "routing": {
    "method": "PUT",
    "parameters": [
      {
        "bind": "planId",
        "in": "Path",
        "name": "planId",
        "remarks": "planId"
      },
      {
        "bind": "maingoalId",
        "in": "Path",
        "name": "maingoalId",
        "remarks": "maingoalId"
      },
      {
        "bind": "goalId",
        "in": "Path",
        "name": "goalId",
        "remarks": "goalId"
      },
      {
        "bind": "filterId",
        "in": "Path",
        "name": "filterId",
        "remarks": "filterId"
      },
      {
        "bind": "value",
        "in": "Body",
        "name": "value",
        "remarks": "value"
      }
    ],
    "path": "/designer/plans/{planId}/main-goals/{maingoalId}/goals/{goalId}/filters/{filterId}",
    "remarks": "Update the filter of the goal",
    "responses": [
      {
        "httpStatus": "200",
        "remarks": "Ok"
      },
      {
        "errorName": "Unauthorized",
        "httpStatus": "401",
        "remarks": "Unauthorized"
      },
      {
        "errorName": "Forbidden",
        "httpStatus": "403",
        "remarks": "Forbidden"
      },
      {
        "errorName": "NotFound",
        "httpStatus": "404",
        "remarks": "Not found"
      }
    ]
  }
}