Adds upsert to widget API