Method: contentPacks.upload

Full name: projects.locations.instances.contentHub.contentPacks.upload

Import Content Pack.

HTTP request


Path parameters

Parameters
parent

string

Required. The resource parent of the ContentPack to import. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/contentPacks

Request body

The request body contains data with the following structure:

JSON representation
{
  "media": {
    object (Media)
  },
  "mediaInfo": {
    object (MediaRequestInfo)
  }
}
Fields
media

object (Media)

Zip file of the imported content pack.

mediaInfo

object (MediaRequestInfo)

Metadata about the media upload request.

Response body

Response message for importing content pack.

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

JSON representation
{
  "contentPack": string,
  "mediaInfo": {
    object (MediaResponseInfo)
  }
}
Fields
contentPack

string

Output only. Identifier of the content pack

mediaInfo

object (MediaResponseInfo)

Scotty properties (won't be visible in exposed API)

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.