AI-generated Key Takeaways
-
This method retrieves the schema that defines the configurable properties for a product, which can be used to populate a UI for admin configuration.
-
The method is deprecated and new integrations should refer to alternative recommendations as it will no longer be accessible after September 30, 2025.
-
The request requires authorization with the
https://www.googleapis.com/auth/androidenterprisescope and includesenterpriseIdandproductIdas path parameters, with an optionallanguagequery parameter. -
The successful response body contains a list of restrictions, each with properties like key, title, restrictionType, description, and potentially default values or nested restrictions.
Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an admin to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play .
Request
HTTP request
GET https://www.googleapis.com/androidenterprise/v1/enterprises/ enterpriseId /products/ productId /appRestrictionsSchema
Parameters
enterpriseId
string
productId
string
language
string
Authorization
This request requires authorization with the following scope:
| Scope |
|---|
https://www.googleapis.com/auth/androidenterprise
|
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind" : string , "restrictions" : [ { "key" : string , "title" : string , "restrictionType" : string , "description" : string , "entry" : [ string ], "entryValue" : [ string ], "defaultValue" : { "type" : string , "valueBool" : boolean , "valueString" : string , "valueInteger" : integer , "valueMultiselect" : [ string ] } , "nestedRestriction" : [ ( AppRestrictionsSchemaRestriction ) ] } ] }
restrictions[]
list
restrictions[].
key
string
restrictions[].
title
string
restrictions[].
restrictionType
string
Acceptable values are:
- "
bool" - "
bundle" - "
bundleArray" - "
choice" - "
hidden" - "
integer" - "
multiselect" - "
string"
restrictions[].
description
string
restrictions[].
entry[]
list
choice
or multiselect
restrictions, the list of possible entries' human-readable names. restrictions[].
entryValue[]
list
choice
or multiselect
restrictions, the list of possible entries' machine-readable values. These values should be used in the configuration, either as a single string
value for a choice
restriction or in a stringArray
for a multiselect
restriction. restrictions[].
defaultValue
nested object
bundle
and bundleArray
restrictions never have a default value. restrictions[].defaultValue.
type
string
Acceptable values are:
- "
bool" - "
bundle" - "
bundleArray" - "
choice" - "
hidden" - "
integer" - "
multiselect" - "
string"
restrictions[].defaultValue.
valueBool
boolean
restrictions[].defaultValue.
valueString
string
restrictions[].defaultValue.
valueInteger
integer
restrictions[].defaultValue.
valueMultiselect[]
list
restrictions[].
nestedRestriction[]
list
bundle
or bundleArray
restrictions, the list of nested restrictions. A bundle
restriction is always nested within a bundleArray
restriction, and a bundleArray
restriction is at most two levels deep.kind
string

