REST.Backend.EMSApi.TEMSClientAPI.CreateGroup

提供: RAD Studio API Documentation
移動先: 案内検索

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);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
REST.Backend.EMSApi.pas
REST.Backend.EMSApi.hpp
REST.Backend.EMSApi TEMSClientAPI


説明

指定された名前とデータを持つグループを EMS サーバーに追加します。

CreateGroup が受け取るパラメータは次のとおりです。

  • AGroupName: 新規グループの名前です。
  • AGroupFields: 新規グループの追加データを格納した任意指定の JSON オブジェクトです。
  • AGroup: 新規グループを表す TGroup インスタンスです。

例外

例外 メッセージ 説明

EEMSClientAPIError

MasterSecret が必要です

AuthenticationTAuthentication.MasterSecret で、ConnectionInfo.MasterSecret が空の文字列になっています。

セッション トークンが必要です

AuthenticationTAuthentication.Session で、かつ、ログインが行われなかったか、Login の呼び出し時に渡されたセッション認証トークンが空の文字列になっています。

関連項目