feat(sandbox): add optional activate argument to sandbox provider config

- Updated the request parser in SandboxProviderListApi to include an optional 'activate' boolean argument for JSON input.
- This enhancement allows users to specify activation status when configuring sandbox providers.
This commit is contained in:
Harry
2026-01-19 21:46:26 +08:00
parent 41aec357b0
commit d297167fef

View File

@ -27,6 +27,7 @@ class SandboxProviderListApi(Resource):
config_parser = reqparse.RequestParser()
config_parser.add_argument("config", type=dict, required=True, location="json")
config_parser.add_argument("activate", type=bool, required=False, default=False, location="json")
@console_ns.route("/workspaces/current/sandbox-provider/<string:provider_type>/config")