Create or update a controller.
If controller exists as a package (folder), updates the file inside. Otherwise creates/updates as a single file.
Args: controller_type: Type of controller to create/update controller_name: Name of the controller (from URL path) controller: Controller object with content (and optional type for validation)
Returns: Success message when controller is saved
Raises: HTTPException: 400 if controller type mismatch or save error
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Types of controllers available
directional_trading, market_making, generic Successful Response