EMS.Services.TEMSInternalAPI.CreateGroup

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
function public
EMS.Services.pas
EMS.Services.hpp
EMS.Services TEMSInternalAPI

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 custom AGroupFields 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.

See Also