def place_project_bid(session, project_id, bidder_id, description, amount,<EOL>period, milestone_percentage):
bid_data = {<EOL>'<STR_LIT>': project_id,<EOL>'<STR_LIT>': bidder_id,<EOL>'<STR_LIT:description>': description,<EOL>'<STR_LIT>': amount,<EOL>'<STR_LIT>': period,<EOL>'<STR_LIT>': milestone_percentage,<EOL>}<EOL>response = make_post_request(session, '<STR_LIT>', json_data=bid_data)<EOL>json_data = response.json()<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>bid_data = json_data['<STR_LIT:result>']<EOL>return Bid(bid_data)<EOL><DEDENT>else:<EOL><INDENT>raise BidNotPlacedException(message=json_data['<STR_LIT:message>'],<EOL>error_code=json_data['<STR_LIT>'],<EOL>request_id=json_data['<STR_LIT>'])<EOL><DEDENT>
Place a bid on a project