REST.Backend.EMSServices.TEMSGroupsAPI.CreateGroup
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:
AGroupis the name of the new group.AJSONis an optional JSON object that contains additional data for the new group.ACreatedObjectis an instance of TBackendEntityValue that represents the new group.
Exceptions
| Exception | Message | Description |
|---|---|---|
|
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. |