REST.Backend.EMSServices.TEMSGroupsAPI.CreateGroup

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateGroup(const AGroup: string; AJSON: TJSONObject;  out ACreatedObject: TBackendEntityValue); overload;

C++

void __fastcall CreateGroup(const System::UnicodeString AGroup, System::Json::TJSONObject* AJSON, /* out */ Rest::Backend::Metatypes::TBackendEntityValue &ACreatedObject)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
protected
REST.Backend.EMSServices.pas
REST.Backend.EMSServices.hpp
REST.Backend.EMSServices TEMSGroupsAPI

Description

Adds to the EMS server a group with the specified name and data.

CreateGroup receives the following parameters:

  • AGroup is the name of the new group.
  • AJSON is an optional JSON object that contains additional data for the new group.
  • ACreatedObject is an instance of TBackendEntityValue that represents the new group.

Exceptions

Exception Message Description

EEMSClientAPIError

MasterSecret required

The type of authentication is TAuthentication.MasterSecret and the MasterSecret property of the connection information of the underlying EMS backend service is an empty string.

Session token required

The type of authentication is TAuthentication.Session you did not log in.

See Also