patch up api