[Rest API] Created a generic script.