REST.Backend.EMSApi.TEMSClientAPI.UpdateModuleResource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UpdateModuleResource(const AModuleID, AResourceName: string; const AJSONObject: TJSONObject; out AUpdatedAt: TUpdatedAt);

C++

void __fastcall UpdateModuleResource(const System::UnicodeString AModuleID, const System::UnicodeString AResourceName, System::Json::TJSONObject* const AJSONObject, /* out */ TUpdatedAt &AUpdatedAt);

Properties

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

Description

Replaces the existing information about the specified module resource with the specified information.

UpdateModuleResource receives the following parameters:

  • AModuleID is a string with the ID of the module that contains the target module resource.
  • AResourceName is a string with the name of the target module resource.
  • AJSONObject is a JSON object that contains the new data for the target module resource.
  • AUpdatedAt is an instance of TUpdatedAt that UpdateModuleResource fills with the date and time when the EMS Server applied the requested change.

Exceptions

Exception Message Description

EEMSClientAPIError

MasterSecret required

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

Module ID required

The specified module ID is an empty string.

Resource name required

The specified resource name 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