flip_api.project_services.delete_project
Attributes
Functions
|
Deletes a project with the provided ID. |
Module Contents
- flip_api.project_services.delete_project.router
- flip_api.project_services.delete_project.delete_project_endpoint(request: fastapi.Request, project_id: uuid.UUID = Path(..., description='The ID of the project to delete.'), user_id: uuid.UUID = Depends(verify_token), db: sqlmodel.Session = Depends(get_session)) None
Deletes a project with the provided ID.
- Parameters:
request (Request) – FastAPI request object.
project_id (UUID) – The ID of the project to delete.
user_id (UUID) – The ID of the user making the request.
db (Session) – The database session.
- Returns:
None
- Raises:
HTTPException – If the user is not allowed, if the project does not exist, or if there are validation errors.