REST.Backend.EMSApi.TEMSClientAPI.CreateGroup
Delphi
procedure CreateGroup(const AGroupName: string;
const AGroupFields: TJSONObject; out AGroup: TGroup);
C++
void __fastcall CreateGroup(const System::UnicodeString AGroupName, System::Json::TJSONObject* const AGroupFields, /* out */ TGroup &AGroup);
Inhaltsverzeichnis
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet | 
|---|---|---|---|---|
procedure function  | 
		public | REST.Backend.EMSApi.pas REST.Backend.EMSApi.hpp  | 
        REST.Backend.EMSApi | TEMSClientAPI | 
Beschreibung
Fügt dem EMS-Server eine Gruppe mit dem angegebenen Namen und den angegebenen Daten hinzu.
CreateGroup übernimmt die folgenden Parameter:
AGroupNameist der Name der neuen Gruppe.AGroupFieldsist ein optionales JSON-Objekt, das weitere Daten für die neue Gruppe enthält.AGroupist eine Instanz von TGroup, die die neue Gruppe repräsentiert.
Exceptions
| Exception | Meldung | Beschreibung | 
|---|---|---|
| 
 MasterSecret erforderlich  | 
 Authentication ist TAuthentication.MasterSecret und ConnectionInfo.MasterSecret ist ein leerer String.  | |
| 
 Sitzungs-Token erforderlich  | 
 Authentication ist TAuthentication.Session, und Sie haben sich nicht angemeldet oder das bei der Anmeldung (Login) angegebene Sitzungsauthentifizierungs-Token ist ein leerer String.  | 
Siehe auch
- REST.Backend.EMSApi.TEMSClientAPI.RetrieveGroup
 - REST.Backend.EMSApi.TEMSClientAPI.RetrieveGroupsFields
 - REST.Backend.EMSApi.TEMSClientAPI.UpdateGroup
 - REST.Backend.EMSApi.TEMSClientAPI.AddUsersToGroup
 - REST.Backend.EMSApi.TEMSClientAPI.RemoveUsersFromGroup
 - REST.Backend.EMSApi.TEMSClientAPI.RetrieveGroupsNames
 - REST.Backend.EMSApi.TEMSClientAPI.QueryGroups
 - REST.Backend.EMSApi.TEMSClientAPI.RetrieveUserGroups
 - REST.Backend.EMSApi.TEMSClientAPI.DeleteGroup