We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e79aab commit af148b7Copy full SHA for af148b7
1 file changed
cmdb-api/api/views/common_setting/department.py
@@ -62,7 +62,7 @@ def post(self):
62
class DepartmentIDView(APIView):
63
url_prefix = (f'{prefix}/<int:_id>',)
64
65
- def get(self, _id):
+ def put(self, _id):
66
form = DepartmentForm(MultiDict(request.json))
67
if not form.validate():
68
abort(400, ','.join(['{}: {}'.format(filed, ','.join(msg))
0 commit comments