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 nameValueDescription
Path parameters
itemIdstringThe ID of the item to publish.
Optional query parameters
publishTargetstringProvide 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 nameValueDescription
targetstringThe 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 specify 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 nameValueDescription
kindstringStatic string value is always "chromewebstore#item".
item_idstringThe ID of this item.
status[]listThe status code of this publish operation. It may contain multiple elements from the following list: OK, NOT_AUTHORIZED, INVALID_DEVELOPER, DEVELOPER_NO_OWNERSHIP, DEVELOPER_SUSPENDED, ITEM_NOT_FOUND, ITEM_PENDING_REVIEW, ITEM_TAKEN_DOWN, PUBLISHER_SUSPENDED.
statusDetail[]listDetailed human-comprehensible explanation of the status code above.

Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.