建立 UserList。
Authorization 標頭:
這個方法支援下列選用標頭,可定義 API 如何授權要求存取權:
login-account:(選用) 帳戶的資源名稱,憑證的 Google 帳戶是該帳戶的使用者。如未設定,預設為要求帳戶。格式:accountTypes/{loginAccountType}/accounts/{loginAccountId}linked-account:(選用) 帳戶的資源名稱,該帳戶已與login-account建立產品連結。格式:accountTypes/{linkedAccountType}/accounts/{linkedAccountId}
HTTP 要求
POST https://datamanager.googleapis.com/v1/{parent=accountTypes/*/accounts/*}/userLists
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
parent |
必填。表示將建立這個使用者名單的父項帳戶。格式:accountTypes/{accountType}/accounts/{account} |
查詢參數
| 參數 | |
|---|---|
validateOnly |
(選用步驟) 如果為 true,系統會驗證要求,但不會執行要求。 |
要求主體
要求主體包含 UserList 的例項。
回應主體
如果成功,回應主體會包含新建立的 UserList 執行個體。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/datamanager