EMS.Services.TEMSInternalAPI.CreateGroup
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: EMS.Services.pas EMS.Services.hpp
| |
Unit: EMS.Services | |
Parent: TEMSInternalAPI |
Delphi
function CreateGroup(const AGroupName: string;
const AGroupFields: TJSONObject): IEMSResourceResponseContent; overload;
function CreateGroup(const AJSONBody: TJSONObject): IEMSResourceResponseContent; overload;
C++
_di_IEMSResourceResponseContent __fastcall CreateGroup(const System::UnicodeString AGroupName, System::Json::TJSONObject* const AGroupFields)/* overload */;
_di_IEMSResourceResponseContent __fastcall CreateGroup(System::Json::TJSONObject* const AJSONBody)/* overload */;
Description
Creates a new EMS Group in the EMS Server.
The CreateGroup method is overloaded:
- The first overloaded method adds the
AGroupName
, and (optionally) the customAGroupFields
to a TJSONObject. This method calls the second overloaded CreateGroup method with the resulting TJSONObject. - The second overloaded method adds the new EMS Group.
AJSONBody
contains the EMS Group data as a TJSONobject.
- Note: Only the EMS Group name is required.
CreateGroup returns an IEMSResourceResponseContent to read the response from the resource.