flip_api.project_services.create_project
Attributes
Functions
|
Creates a new project with the provided details. |
Module Contents
- flip_api.project_services.create_project.router
- flip_api.project_services.create_project.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.
- Parameters:
payload (ProjectDetails) – The details of the project to create.
user_id (UUID) – The ID of the user making the request.
db (Session) – The database session.
- Returns:
The ID of the created project.
- Return type:
- 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.