The URL `"/apps/appID/platform"` is probably not the one you want to use. Rather replace by `"/apps/" + appId + "/"+ platform`.