{
  "basePath": "",
  "name": "playcustomapp",
  "kind": "discovery#restDescription",
  "resources": {
    "accounts": {
      "resources": {
        "customApps": {
          "methods": {
            "create": {
              "path": "playcustomapp/v1/accounts/{account}/customApps",
              "supportsMediaUpload": true,
              "request": {
                "$ref": "CustomApp"
              },
              "flatPath": "playcustomapp/v1/accounts/{account}/customApps",
              "scopes": [
                "https://www.googleapis.com/auth/androidpublisher"
              ],
              "httpMethod": "POST",
              "id": "playcustomapp.accounts.customApps.create",
              "description": "Creates a new custom app.",
              "response": {
                "$ref": "CustomApp"
              },
              "parameters": {
                "account": {
                  "description": "Developer account ID.",
                  "type": "string",
                  "location": "path",
                  "format": "int64",
                  "required": true
                }
              },
              "mediaUpload": {
                "accept": [
                  "*/*"
                ],
                "maxSize": "10737418240",
                "protocols": {
                  "resumable": {
                    "path": "/resumable/upload/playcustomapp/v1/accounts/{account}/customApps",
                    "multipart": true
                  },
                  "simple": {
                    "multipart": true,
                    "path": "/upload/playcustomapp/v1/accounts/{account}/customApps"
                  }
                }
              },
              "parameterOrder": [
                "account"
              ]
            }
          }
        }
      }
    }
  },
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/androidpublisher": {
          "description": "View and manage your Google Play Developer account"
        }
      }
    }
  },
  "ownerDomain": "google.com",
  "schemas": {
    "CustomApp": {
      "id": "CustomApp",
      "type": "object",
      "properties": {
        "languageCode": {
          "type": "string",
          "description": "Default listing language in BCP 47 format."
        },
        "title": {
          "description": "Title for the Android app.",
          "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"
          }
        },
        "packageName": {
          "description": "Output only. Package name of the created Android app. Only present in the API response.",
          "readOnly": true,
          "type": "string"
        }
      },
      "description": "This resource represents a custom app."
    },
    "Organization": {
      "description": "Represents an organization that can access a custom app.",
      "id": "Organization",
      "type": "object",
      "properties": {
        "organizationId": {
          "type": "string",
          "description": "Required. ID of the organization."
        },
        "organizationName": {
          "description": "Optional. A human-readable name of the organization, to help recognize the organization.",
          "type": "string"
        }
      }
    }
  },
  "servicePath": "",
  "documentationLink": "https://developers.google.com/android/work/play/custom-app-api/",
  "fullyEncodeReservedExpansion": true,
  "id": "playcustomapp:v1",
  "ownerName": "Google",
  "title": "Google Play Custom App Publishing API",
  "version": "v1",
  "discoveryVersion": "v1",
  "protocol": "rest",
  "batchPath": "batch",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "rootUrl": "https://playcustomapp.googleapis.com/",
  "mtlsRootUrl": "https://playcustomapp.mtls.googleapis.com/",
  "description": "API to create and publish custom Android apps",
  "revision": "20260702",
  "parameters": {
    "quotaUser": {
      "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",
      "type": "string"
    },
    "key": {
      "type": "string",
      "location": "query",
      "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."
    },
    "upload_protocol": {
      "type": "string",
      "location": "query",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
    },
    "callback": {
      "description": "JSONP",
      "location": "query",
      "type": "string"
    },
    "fields": {
      "type": "string",
      "location": "query",
      "description": "Selector specifying which fields to include in a partial response."
    },
    "uploadType": {
      "type": "string",
      "location": "query",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
    },
    "alt": {
      "default": "json",
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "description": "Data format for response.",
      "type": "string",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "location": "query"
    },
    "$.xgafv": {
      "enum": [
        "1",
        "2"
      ],
      "location": "query",
      "type": "string",
      "description": "V1 error format.",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ]
    },
    "oauth_token": {
      "type": "string",
      "location": "query",
      "description": "OAuth 2.0 token for the current user."
    },
    "access_token": {
      "description": "OAuth access token.",
      "location": "query",
      "type": "string"
    },
    "prettyPrint": {
      "location": "query",
      "type": "boolean",
      "description": "Returns response with indentations and line breaks.",
      "default": "true"
    }
  },
  "baseUrl": "https://playcustomapp.googleapis.com/"
}
