def award_project_bid(session, bid_id):
headers = {<EOL>'<STR_LIT:Content-Type>': '<STR_LIT>'<EOL>}<EOL>bid_data = {<EOL>'<STR_LIT:action>': '<STR_LIT>'<EOL>}<EOL>endpoint = '<STR_LIT>'.format(bid_id)<EOL>response = make_put_request(session, endpoint, headers=headers,<EOL>params_data=bid_data)<EOL>json_data = response.json()<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>return json_data['<STR_LIT:status>']<EOL><DEDENT>else:<EOL><INDENT>json_data = response.json()<EOL>raise BidNotAwardedException(<EOL>message=json_data['<STR_LIT:message>'],<EOL>error_code=json_data['<STR_LIT>'],<EOL>request_id=json_data['<STR_LIT>']<EOL>)<EOL><DEDENT>
Award a bid on a project