Method: media.upload

Upload a new package to an existing item.

HTTP request

  • Upload URI, for media upload requests:
    POST https://chromewebstore.googleapis.com/upload/v2/{name=publishers/*/items/*}:upload
  • Metadata URI, for metadata-only requests:
    POST https://chromewebstore.googleapis.com/v2/{name=publishers/*/items/*}:upload

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Name of the item to upload the new package to in the form publishers/{publisherId}/items/{itemId}

Request body

The request body contains data with the following structure:

JSON representation
{
  "blob": {
    object (Media)
  },
  "mediaRequestInfo": {
    object (MediaRequestInfo)
  }
}
Fields
blob

object (Media)

Reference to the uploaded media.

mediaRequestInfo

object (MediaRequestInfo)

Info about the media upload request.

Response body

Response message for media.upload.

If successful, the response body contains data with the following structure:

JSON representation
{
  "name": string,
  "itemId": string,
  "crxVersion": string,
  "uploadState": enum (UploadState)
}
Fields
name

string

The name of the item the package was uploaded to.

itemId

string

Output only. The ID of the item the package was uploaded to.

crxVersion

string

The extension version provided in the manifest of the uploaded package. This will not be set if the upload is still in progress (uploadState is UPLOAD_IN_PROGRESS).

uploadState

enum (UploadState)

Output only. The state of the upload. If uploadState is UPLOAD_IN_PROGRESS, you can poll for updates using the fetchStatus method.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chromewebstore