update REST API for jsunpack-n