EMS.Services.TEMSInternalAPI.UpdateModuleResource
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: EMS.Services.pas EMS.Services.hpp
| |
| Unit: EMS.Services | |
| Parent: TEMSInternalAPI | |
Delphi
function UpdateModuleResource(const AModuleName, AResourceName: string; const AJSONObject: TJSONObject): IEMSResourceResponseContent; overload;
C++
_di_IEMSResourceResponseContent __fastcall UpdateModuleResource(const System::UnicodeString AModuleName, const System::UnicodeString AResourceName, System::Json::TJSONObject* const AJSONObject)/* overload */;
Description
Updates the fields of a particular resource of an EMS Edge module in the EMS Server.
UpdateModuleResource updates the content of a given resource of an 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
UpdateModuleResource receives the following input parameters:
AModuleName: EMS Edge Module name that is registered in the EMS Server.AResourceName: the resource name of theAModuleNameto update.AJSONObject: TJSONObject that contains pairs ofname/values.
UpdateModuleResource returns the content of the request response from the EMS Server.