replaced id with type in get/delete_attribute