为企业设置商店布局。默认情况下,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”(如果未设置 primaryId 字段),设置为“custom”否则。如果设置为“基本”,布局将包含已针对用户列入白名单的所有已批准的应用。 可接受的值包括: 
 | |
| kind | string | 
响应
如果成功,此方法将返回采用以下结构的响应正文:
{
  "kind": "androidenterprise#storeLayout",
  "homepageId": string,
  "storeLayoutType": string
}| 属性名称 | 值 | 说明 | 备注 | 
|---|---|---|---|
| homepageId | string | 将用作首页的商店页面的 ID。首页是 Google Play 企业版商店中显示的第一个页面。 不指定首页相当于将商店布局类型设置为“基本”。 | |
| storeLayoutType | string | 商店布局类型。默认情况下,此值设为“basic”(如果未设置 primaryId 字段),设置为“custom”否则。如果设置为“基本”,布局将包含已针对用户列入白名单的所有已批准的应用。 可接受的值包括: 
 | |
| kind | string |