createTemplateCatalogItem

On this page
Back to index

Summary

Create template catalog item for an object.
projectName
Stringrequired
The name for the project that must be unique among all projects.
catalogItemName
Stringrequired
The name of the template catalog item.
catalogName
Stringoptional
The name of the catalog to create a template catalog item in. If not provided, a catalog with the name ENTITY_TYPE Templates is used. If it does not exist and the user has the required permissions, it is created.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
entityId
Stringoptional
The ID of the template creation object.
entityType
Stringoptional
The type of the template creations object.
path
Stringoptional
A property path indicating a single template creation object.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createTemplateCatalogItem( projectName: "test-projectName", catalogItemName: "test-catalogItemName" /* optional arguments */ )