Automation Suite
2021.10
バナーの背景画像
UiPath Automation Suite API ガイド
最終更新日 2024年4月19日

グループにライセンスを割り当てる

組織管理者は、このエンドポイントを使用して、グループ ID に基づいてグループにライセンスを割り当てます。

API エンドポイント

docs image

https://{yourDomain}/lease_/api/account/{accountId}/user-license/group/{groupId}

要求ヘッダー

--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
注: {access_token} を取得するには、必ずこちらで説明する ROPC の方法で認証を行ってください。

パス パラメーター

パス パラメーター

データ型

説明

accountId

(必須)

文字列

テナントが存在する組織の ID。

groupId

(必須)

文字列

ライセンスを割り当てるグループの ID です。

要求本文

要求本文には、さまざまな製品のライセンス コードの配列と、それらに対応する数量が含まれています。

{
    "userBundleCodes": ["string"],
    "useExternalLicense": false
}{
    "userBundleCodes": ["string"],
    "useExternalLicense": false
}
注:
  • 要求本文で使用できる利用可能なユーザー バンドル コードを確認するには、ユーザー ライセンス コードに関するこちらのページをご覧ください。
  • 組織が購入した数のライセンスを割り当てることができます。

応答

200 OK

割り当てられたグループ ライセンスを返します。

404

指定した組織にアカウント ライセンスは割り当てられません。

409

アカウント ライセンスの数量を超えているため、ライセンスの割り当ては許可されません。

要求の例

API 呼び出しの構築に必要な情報をすべて収集したとします。

  • {baseURL}https://music-server.com です。
  • {access_token}1234 です (長さを考慮)。
  • ライセンスの割り当てが必要なテナントの {accountId}song-one です。
  • {groupId} group-01 です。
  • 上記のグループに次のようにユーザー ライセンスを割り当てます。

呼び出しは以下のようになります (cURL)。

curl --location --request POST 'https://music-server.com/lease_/api/account/song-one/service-license/group/group-01' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userBundleCodes": ["RPADEVPRONU", "IDU", "CTZDEVCU"], 
    "useExternalLicense": false
}'curl --location --request POST 'https://music-server.com/lease_/api/account/song-one/service-license/group/group-01' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userBundleCodes": ["RPADEVPRONU", "IDU", "CTZDEVCU"], 
    "useExternalLicense": false
}'

ライセンス割り当てに成功した場合の応答本文は次のとおりです。

{
  "groupId": "string",
  "organizationId": "string",
  "useExternalLicense": false,
  "userBundleCodes": [
    "string"
  ]
}{
  "groupId": "string",
  "organizationId": "string",
  "useExternalLicense": false,
  "userBundleCodes": [
    "string"
  ]
}
  • API エンドポイント
  • 要求ヘッダー
  • パス パラメーター
  • 要求本文
  • 応答
  • 200 OK
  • 404
  • 409
  • 要求の例

Was this page helpful?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
UiPath ロゴ (白)
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.