flip_api.project_services.create_project ======================================== .. py:module:: flip_api.project_services.create_project Attributes ---------- .. autoapisummary:: flip_api.project_services.create_project.router Functions --------- .. autoapisummary:: flip_api.project_services.create_project.create_project_endpoint Module Contents --------------- .. py:data:: router .. py:function:: create_project_endpoint(payload: flip_api.domain.schemas.projects.ProjectDetails = Body(...), user_id: uuid.UUID = Depends(verify_token), db: sqlmodel.Session = Depends(get_session)) Creates a new project with the provided details. :param payload: The details of the project to create. :type payload: ProjectDetails :param user_id: The ID of the user making the request. :type user_id: UUID :param db: The database session. :type db: Session :returns: The ID of the created project. :rtype: IId :raises HTTPException: If the user does not have permission to create projects, if the project details are invalid, or if there is an error during project creation.