adds newly-created BrandID to apicontext