Hi, @Debeka & @ncw. You can find the sample Java code snippet to read the upload response below. We will check the possibility of adding the same in our API documentation.
String response = "<Upload API response>";
JSONObject json = new JSONObject(response);
String infoStr = json.getJSONArray("data").getJSONObject(0).getJSONObject("attributes").getString("File INFO");
JSONObject infoJson = new JSONObject(infoStr);
String checksum = infoJson.getString("MD5_CHECKSUM");
long size = infoJson.getLong("size");
long modifiedTime = -1l;
//Normal upload
if(infoJson.getJSONObject("AUDIT_INFO").has("resource")) {
modifiedTime = infoJson.getJSONObject("AUDIT_INFO").getJSONObject("resource").getLong("status_change_time");
}
//Revision upload
else {
modifiedTime = infoJson.getJSONObject("AUDIT_INFO").getJSONObject("resourceInfo").getLong("status_change_time");
}
System.out.println("checksum - " + checksum + " size - " + size + " modifiedTime - " + modifiedTime);