def METHOD_NAME(self, request: Request, **kwargs) -> Response:
    component = get_object_for_user(
        request.user,
        "cm.view_servicecomponent",
        ServiceComponent,
        id=kwargs["component_id"],
    )
    # pylint: disable=protected-access
    check_custom_perm(request.user, "change_maintenance_mode", component._meta.model_name, component)
    serializer = self.get_serializer(instance=component, data=request.data)
    serializer.is_valid(raise_exception=True)
    response: Response = get_maintenance_mode_response(obj=component, serializer=serializer)
    if response.status_code == HTTP_200_OK:
        response.data = serializer.data
    return response