flip_api.project_services.edit_project ====================================== .. py:module:: flip_api.project_services.edit_project Attributes ---------- .. autoapisummary:: flip_api.project_services.edit_project.router Functions --------- .. autoapisummary:: flip_api.project_services.edit_project.edit_project_endpoint Module Contents --------------- .. py:data:: router .. py:function:: edit_project_endpoint(request: fastapi.Request, project_id: uuid.UUID = Path(..., description='The ID of the project to edit.'), project_details: flip_api.domain.interfaces.project.IEditProject = Body(..., description='Details of the project to edit.'), user_id: uuid.UUID = Depends(verify_token), db: sqlmodel.Session = Depends(get_session)) Edits a project with the provided ID. This endpoint allows users with the appropriate permissions to update the project's name and description. :param request: FastAPI request object. :type request: Request :param project_id: The ID of the project to edit. :type project_id: UUID :param project_details: Details of the project to edit. :type project_details: IEditProject :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 updated project details. :rtype: Projects :raises HTTPException: If the user is not allowed, if the project does not exist, or if there are validation errors.