flip_api.project_services.approve_project ========================================= .. py:module:: flip_api.project_services.approve_project Attributes ---------- .. autoapisummary:: flip_api.project_services.approve_project.router Functions --------- .. autoapisummary:: flip_api.project_services.approve_project.approve_project_endpoint Module Contents --------------- .. py:data:: router .. py:function:: approve_project_endpoint(project_id: uuid.UUID = Path(..., description='The ID of the project to approve.'), payload: flip_api.domain.schemas.projects.ApproveProjectBodyPayload = Body(..., description='Payload containing trust IDs to approve the project for.'), user_id: uuid.UUID = Depends(verify_token), db: sqlmodel.Session = Depends(get_session)) Approves a project that is currently in the 'STAGED' status. The approval is specific to the list of trust IDs provided in the request body. :param project_id: The ID of the project to approve. :type project_id: UUID :param payload: The payload containing trust IDs to approve the project for. :type payload: ApproveProjectBodyPayload :param user_id: The ID of the user making the request. :type user_id: UUID :param db: The database session. :type db: Session :returns: A list of trusts that the project has been approved for. :rtype: list[ITrust] :raises HTTPException: If the user does not have permission to approve projects, if the project does not exist, or if there are validation errors.