Agent Push Updates

Push update to Files Agent

SDK Function

remoteServer.agentPushUpdate();

Return Object

AgentPushUpdate

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.AgentPushUpdate;
import com.files.models.RemoteServer;

try {
  HashMap<String, Object> attributes = new HashMap<>();
  RemoteServer remoteServer = new RemoteServer(attributes);
  remoteServer.agentPushUpdate(null);
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The AgentPushUpdate Object

Some of the functions above return a AgentPushUpdate object. The attributes of this object are listed below.

AttributeDescription
version
string
Pushed agent version
message
string
Update accepted or reason
current_version
string
Installed agent version
pending_version
string
Pending agent version or null
last_error
string
Last error message or null
error
string
Error code