func (p *Provisioning) Update(ctx *app.UpdateProvisioningContext) error { instance, err := p.state.Instance(ctx.InstanceId) if err != nil { return ctx.NotFound() } instance.ServiceID = ctx.ServiceId instance.PlanID = ctx.PlanId p.state.UpdateInstance(*instance) return ctx.OK(&app.CfbrokerDashboard{}) }