Full name: projects.locations.instances.contentHub.contentPacks.upload
Import Content Pack.
HTTP request
Path parameters
Parameters | |
---|---|
parent |
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 ( |
Fields | |
---|---|
media |
Zip file of the imported content pack. |
mediaInfo |
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 ( |
Fields | |
---|---|
contentPack |
Output only. Identifier of the content pack |
mediaInfo |
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.