EMS.Services.TEMSInternalAPI.UpdateModule
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: EMS.Services.pas EMS.Services.hpp
| |
| Unit: EMS.Services | |
| Parent: TEMSInternalAPI | |
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 */;
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/valuepair 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.