設定企業的商店版面配置。根據預設,storeLayoutType 會設為「basic」,並啟用基本商店版面配置。基本 版面配置只包含經管理員核准,且 的方法是使用 setAvailableProductSet 呼叫)。頁面上的應用程式會按照 產品 ID 值如果您要建立自訂商店版面配置 (透過 storeLayoutType =「custom」以及設定首頁) 基本商店 版面配置已停用。
要求
HTTP 要求
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/storeLayout
參數
| 參數名稱 | 值 | 說明 | 
|---|---|---|
| 路徑參數 | ||
| enterpriseId | string | 企業的 ID。 | 
授權
此要求需要具有下列範圍的授權:
| 範圍 | 
|---|
| https://www.googleapis.com/auth/androidenterprise | 
詳情請參閱「驗證與授權」頁面。
要求主體
在要求主體中,提供具有以下結構的資料:
{
  "kind": "androidenterprise#storeLayout",
  "homepageId": string,
  "storeLayoutType": string
}| 屬性名稱 | 值 | 說明 | 附註 | 
|---|---|---|---|
| homepageId | string | 要當做首頁的商店頁面 ID。首頁是 Google Play 管理版商店中顯示的第一個頁面。 不指定首頁,等同於將商店版面配置類型設為「基本」。 | |
| storeLayoutType | string | 商店版面配置類型。這個值預設為「basic」如未設定 homeId 欄位且設為「custom」反之。如果設為「基本」,版面配置會包含所有已為使用者加入許可清單的已核准應用程式。 可接受的值為: 
 | |
| kind | string | 
回應
如果成功的話,這個方法會傳回回應內文,其結構如下:
{
  "kind": "androidenterprise#storeLayout",
  "homepageId": string,
  "storeLayoutType": string
}| 屬性名稱 | 值 | 說明 | 附註 | 
|---|---|---|---|
| homepageId | string | 要當做首頁的商店頁面 ID。首頁是 Google Play 管理版商店中顯示的第一個頁面。 不指定首頁,等同於將商店版面配置類型設為「基本」。 | |
| storeLayoutType | string | 商店版面配置類型。這個值預設為「basic」如未設定 homeId 欄位且設為「custom」反之。如果設為「基本」,版面配置會包含所有已為使用者加入許可清單的已核准應用程式。 可接受的值為: 
 | |
| kind | string |