EMS.Services.TEMSInternalAPI.UpdateModule
Delphi
function UpdateModule(const AModuleName: string; const AJSONObject: TJSONObject): IEMSResourceResponseContent; overload;
C++
_di_IEMSResourceResponseContent __fastcall UpdateModule(const System::UnicodeString AModuleName, 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 of an EMS Edge module in the EMS Server.
UpdateModule updates the content of a given EMS Edge module in the EMS Server, adding, updating or deleting custom fields.
- To add a new field, add a custom
name/value
pair to the TJSONObject. - To delete a field, pass a null value in the JSON object for that pair.
"SomeName":null
UpdateModule receives the following input parameters:
AModuleName
: EMS Edge Module name that is registered in the EMS Server.AJSONObject
: JSON object that contains pairs ofname/values
.
UpdateModule returns the content of the request response from the EMS Server.