Items:Publish

Publishes an item. Provide defined publishTarget in URL (case sensitive): publishTarget = "trustedTesters" or publishTarget = "default".

Request

HTTP request

POST https://www.googleapis.com/chromewebstore/v1.1/items/itemId/publish

Parameters

Parameter name Value Description
Path parameters
itemId string The ID of the item to publish.
Optional query parameters
publishTarget string Provide defined publishTarget in URL (case sensitive): publishTarget="trustedTesters" or publishTarget="default". Defaults to publishTarget="default".

Request body

In the request body, you can optionally supply data with the following structure:

JSON

{
  "target": string
}
Property name Value Description
target string The publish target of this publish operation. This is the same as using publishTarget as a URL query parameter. The string value can either be target="trustedTesters" or target="default". The default value, if none is supplied, is target="default". Recommended usage is to use the URL query parameter to specificy the value.

Authorization

This request requires authorization with the following scope.

Scope
https://www.googleapis.com/auth/chromewebstore
The above URL is used as the scope parameter when generating an access token. For more details on API authorization and authentication, consult the OAuth 2.0 documentation.

Response

If successful, this method returns a response body with the following structure:

JSON

{
  "kind": "chromewebstore#item",
  "item_id": string,
  "status": [
    string
  ],
  "statusDetail": [
    string
  ]
}
Property name Value Description
kind string Static string value is always "chromewebstore#item".
item_id string The ID of this item.
status[] list The status code of this publish operation. It may contain multiple elements from the following list: NOT_AUTHORIZED, INVALID_DEVELOPER, DEVELOPER_NO_OWNERSHIP, DEVELOPER_SUSPENDED, ITEM_NOT_FOUND, ITEM_PENDING_REVIEW, ITEM_TAKEN_DOWN, PUBLISHER_SUSPENDED.
statusDetail[] list Detailed human-comprehensible explanation of the status code above.