update plans api