Method: contentPacks.add

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

Create a ContentPack.

HTTP request


Path parameters

Parameters
parent

string

Required. The parent, which owns this collection of content packs. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/contentPacks

Request body

The request body contains data with the following structure:

JSON representation
{
  "title": string,
  "categories": [
    string
  ],
  "connectorDefinitions": [
    string
  ],
  "connectorsInstances": [
    string
  ],
  "testCases": [
    string
  ],
  "playbooks": [
    string
  ],
  "description": string,
  "videoUri": string
}
Fields
title

string

Required. The title of the content pack, limited to 200 characters.

categories[]

string

Required. Categories used for filtering. Each category name is limited to 50 characters. Max number of categories will be 20

connectorDefinitions[]

string

Optional. The connectors definitions of the content pack Max length of connectorDefinitions be 50.

connectorsInstances[]

string

Optional. The connectors instances of the content pack Max length of connectorsInstances be 50.

testCases[]

string

Optional. The test cases of the content pack Max length of testCases be 50.

playbooks[]

string

Optional. The playbooks of the content pack Max length of playbooks be 50.

description

string

Required. Provides a detailed description of the content-pack, suitable for display in a list view. Limited to 200 characters.

videoUri

string

Optional. URL of the video associated with this content pack. Must be a valid URL with a maximum length of 2048 characters.

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.