def update_helping_material(helpingmaterial):
try:<EOL><INDENT>helpingmaterial_id = helpingmaterial.id<EOL>helpingmaterial = _forbidden_attributes(helpingmaterial)<EOL>res = _pybossa_req('<STR_LIT>', '<STR_LIT>',<EOL>helpingmaterial_id, payload=helpingmaterial.data)<EOL>if res.get('<STR_LIT:id>'):<EOL><INDENT>return HelpingMaterial(res)<EOL><DEDENT>else:<EOL><INDENT>return res<EOL><DEDENT><DEDENT>except:  <EOL><INDENT>raise<EOL><DEDENT>
Update a helping material for a given helping material ID.

    :param helpingmaterial: PYBOSSA helping material