async def post(self,body: TeamsAppDefinition, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[TeamsAppDefinition]:
        """
        Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[TeamsAppDefinition]
        Find more info here: https://learn.microsoft.com/graph/api/teamsapp-update?view=graph-rest-1.0
        """
        if body is None:
            raise TypeError("body cannot be null.")
        request_info = self.to_post_request_information(
            body, request_configuration
        )
        from .....models.o_data_errors.o_data_error import ODataError

        error_mapping: dict[str, type[ParsableFactory]] = {
            "XXX": ODataError,
        }
        if not self.request_adapter:
            raise Exception("Http core is null") 
        from .....models.teams_app_definition import TeamsAppDefinition

        return await self.request_adapter.send_async(request_info, TeamsAppDefinition, error_mapping)

        Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[TeamsAppDefinition]
        Find more info here: https://learn.microsoft.com/graph/api/teamsapp-update?view=graph-rest-1.0
        
msgraph/generated/app_catalogs/teams_apps/item/app_definitions/app_definitions_request_builder.py