AI-generated Key Takeaways
-
This page details how to upload an APK to internal app sharing using a POST request.
-
It is recommended to increase the HTTP request timeout when using Google API client libraries for this endpoint.
-
The request requires a package name and an instance of
Media
in the request body. -
A successful response will contain an instance of
InternalAppSharingArtifact
. -
The upload requires the
https://www.googleapis.com/auth/androidpublisher
authorization scope.
Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended).
See Timeouts and Errors for an example in java.
HTTP request
- Upload URI, for media upload requests:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk
- Metadata URI, for metadata-only requests:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
packageName |
Package name of the app. |
Request body
The request body contains an instance of Media
.
Response body
If successful, the response body contains an instance of InternalAppSharingArtifact
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher