{
  "kind": "discovery#restDescription",
  "version": "v1",
  "ownerDomain": "google.com",
  "baseUrl": "https://playcustomapp.googleapis.com/",
  "name": "playcustomapp",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "batchPath": "batch",
  "ownerName": "Google",
  "servicePath": "",
  "discoveryVersion": "v1",
  "parameters": {
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "alt": {
      "type": "string",
      "description": "Data format for response.",
      "default": "json",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "location": "query"
    },
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "fields": {
      "type": "string",
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query"
    },
    "key": {
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "location": "query"
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "prettyPrint": {
      "type": "boolean",
      "description": "Returns response with indentations and line breaks.",
      "default": "true",
      "location": "query"
    },
    "quotaUser": {
      "type": "string",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
      "location": "query"
    },
    "upload_protocol": {
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query"
    },
    "uploadType": {
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query"
    },
    "$.xgafv": {
      "type": "string",
      "description": "V1 error format.",
      "enum": [
        "1",
        "2"
      ],
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "location": "query"
    }
  },
  "resources": {
    "accounts": {
      "resources": {
        "customApps": {
          "methods": {
            "create": {
              "id": "playcustomapp.accounts.customApps.create",
              "path": "playcustomapp/v1/accounts/{account}/customApps",
              "flatPath": "playcustomapp/v1/accounts/{account}/customApps",
              "httpMethod": "POST",
              "parameters": {
                "account": {
                  "description": "Developer account ID.",
                  "location": "path",
                  "required": true,
                  "type": "string",
                  "format": "int64"
                }
              },
              "parameterOrder": [
                "account"
              ],
              "supportsMediaUpload": true,
              "mediaUpload": {
                "accept": [
                  "*/*"
                ],
                "maxSize": "10737418240",
                "protocols": {
                  "resumable": {
                    "multipart": true,
                    "path": "/resumable/upload/playcustomapp/v1/accounts/{account}/customApps"
                  },
                  "simple": {
                    "multipart": true,
                    "path": "/upload/playcustomapp/v1/accounts/{account}/customApps"
                  }
                }
              },
              "request": {
                "$ref": "CustomApp"
              },
              "response": {
                "$ref": "CustomApp"
              },
              "scopes": [
                "https://www.googleapis.com/auth/androidpublisher"
              ],
              "description": "Creates a new custom app."
            }
          }
        }
      }
    }
  },
  "id": "playcustomapp:v1",
  "protocol": "rest",
  "revision": "20260517",
  "schemas": {
    "CustomApp": {
      "id": "CustomApp",
      "description": "This resource represents a custom app.",
      "type": "object",
      "properties": {
        "title": {
          "description": "Title for the Android app.",
          "type": "string"
        },
        "languageCode": {
          "description": "Default listing language in BCP 47 format.",
          "type": "string"
        },
        "packageName": {
          "description": "Output only. Package name of the created Android app. Only present in the API response.",
          "readOnly": true,
          "type": "string"
        },
        "organizations": {
          "description": "Organizations to which the custom app should be made available. If the request contains any organizations, then the app will be restricted to only these organizations. To support the organization linked to the developer account, the organization ID should be provided explicitly together with other organizations. If no organizations are provided, then the app is only available to the organization linked to the developer account.",
          "type": "array",
          "items": {
            "$ref": "Organization"
          }
        }
      }
    },
    "Organization": {
      "id": "Organization",
      "description": "Represents an organization that can access a custom app.",
      "type": "object",
      "properties": {
        "organizationId": {
          "description": "Required. ID of the organization.",
          "type": "string"
        },
        "organizationName": {
          "description": "Optional. A human-readable name of the organization, to help recognize the organization.",
          "type": "string"
        }
      }
    }
  },
  "fullyEncodeReservedExpansion": true,
  "rootUrl": "https://playcustomapp.googleapis.com/",
  "mtlsRootUrl": "https://playcustomapp.mtls.googleapis.com/",
  "basePath": "",
  "documentationLink": "https://developers.google.com/android/work/play/custom-app-api/",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/androidpublisher": {
          "description": "View and manage your Google Play Developer account"
        }
      }
    }
  },
  "title": "Google Play Custom App Publishing API",
  "description": "API to create and publish custom Android apps"
}
