* @throws UnAuthorizedAccessTokenException if the request is not authorized successfully in the gateway server
*/
public void setRuntimeArgs(String appId, ProgramType programType, String programId, Map<String, String> runtimeArgs)
throws IOException, UnAuthorizedAccessTokenException, ProgramNotFoundException {
String path = String.format("apps/%s/%s/%s/runtimeargs", appId, programType.getCategoryName(), programId);
HttpRequest request = HttpRequest.put(config.resolveURL(path)).withBody(GSON.toJson(runtimeArgs)).build();
HttpResponse response = restClient.execute(request, config.getAccessToken(), HttpURLConnection.HTTP_NOT_FOUND);
if (response.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
throw new ProgramNotFoundException(programType, appId, programId);
}
}