REST.Backend.EMSApi.TEMSClientAPI.UploadInstallation

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UploadInstallation(const AJSON: TJSONObject; out ANewObject: TInstallation);

C++

void __fastcall UploadInstallation(System::Json::TJSONObject* const AJSON, /* out */ TInstallation &ANewObject);

Properties

Type Visibility Source Unit Parent
procedure
function
public
REST.Backend.EMSApi.pas
REST.Backend.EMSApi.hpp
REST.Backend.EMSApi TEMSClientAPI

Description

Adds to the EMS server a new installation with the specified data.

UploadInstallation receives the following parameters:

  • AJSON is an optional JSON object that contains additional data for the new installation.
  • ANewObject is an instance of TInstallation that represents the new installation.

Exceptions

Exception Message Description

EEMSClientAPIError

MasterSecret required

Authentication is TAuthentication.MasterSecret and ConnectionInfo.MasterSecret is an empty string.

Session token required

Authentication is TAuthentication.Session and you did not log in or the session authentication token that you provided to Login is an empty string.

See Also