'Updates an existing entity
:param entity: The entity to save
:return: The updated entity'

def _save_entity(self, entity):

    try:
        entity.save()
    except BambouHTTPError as error:
        self.module.fail_json(msg='Unable    to    update    entity:    {0}'.format(error))
    self.result['changed'] = True
    return entity
