EMS.Services.TEMSInternalAPI.UpdateInstallation
Delphi
function UpdateInstallation(const AInstallationID: string; const AJSONObject: TJSONObject): IEMSResourceResponseContent; overload;
C++
_di_IEMSResourceResponseContent __fastcall UpdateInstallation(const System::UnicodeString AInstallationID, System::Json::TJSONObject* const AJSONObject)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | public | EMS.Services.pas EMS.Services.hpp | EMS.Services | TEMSInternalAPI | 
Description
Updates the fields from an EMS Installation.
UpdateInstallation updates the custom fields of an EMS Installation in the EMS Server, adding, updating or deleting custom fields.
- To add a new custom field, add a custom name/value pair to the TJSONObject.
- To delete a field, pass a nullvalue in the JSON object for that pair.
 {"description":null}
The UpdateInstallation method receives the following parameters:
- AInstallationID: EMS Installation identifier in the EMS Server.
- AJSONObject: TJSONObject with the custom fields of an EMS Installation.
UpdateInstallation returns an IEMSResourceResponseContent to read the response from the EMS Server.