Skip to content

Create a new template

Request

Create a new template for the specified organization.

Security
sessionAuth
Path
orgIdstringrequired

The ID of the organization where the template will be created.

Bodyapplication/jsonrequired

The details of the template to be created.

namestringrequired

The name of the template.

Example:"Example Template"
descriptionstring

The description of the template.

activeboolean

Indicates whether the template is active.

Example:true
publicboolean

Indicates whether the template is public.

Example:false
groupsArray of objects

An array of template groups associated with the template.

attributesArray of stringsrequired

List of ungrouped attributes.

tagsArray of strings

Tags associated with the template.

is_globalboolean

Indicates whether the template is a global template.

is_agenticboolean

Indicates whether the template was created by an AI agent.

created_bystring

The ID of the user who created the template.

category_mappingobject

Category mappings to associate or disassociate with the template.

curl -i -X POST \
  'https://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/template' \
  -H 'Content-Type: application/json' \
  -b cc.session=YOUR_API_KEY_HERE \
  -d '{
    "name": "Example Template",
    "description": "string",
    "active": true,
    "public": false,
    "groups": [
      {
        "name": "Example Group",
        "active": true,
        "attributes": [
          "string"
        ]
      }
    ],
    "attributes": [
      "string"
    ],
    "tags": [
      "string"
    ],
    "is_global": true,
    "is_agentic": true,
    "created_by": "string",
    "category_mapping": {
      "map": [
        "string"
      ],
      "unmap": [
        "string"
      ]
    }
  }'

Responses

The created template.

Bodyapplication/json
namestringrequired

The name of the template.

Example:"Example Template"
descriptionstring

The description of the template.

activeboolean

Indicates whether the template is active.

Example:true
publicboolean

Indicates whether the template is public.

Example:false
groupsArray of objects

An array of template groups associated with the template.

attributesArray of objects(Attribute)required

List of ungrouped attributes.

Example:
[ { "name": "Sample Attribute", "active": true, "code": "sample_attribute", "auto_sync_to_prod": true, "description": "This is a sample attribute", "vms_visible": false, "vms_editable": false, "store_filter": false, "store_display_plp": true, "store_display_pdp": true, "store_search": false, "store_compare": false, "tags": [ … ], "type": "Short Text", "mandatory": true, "jsonata": "payload.key", "limit": 10, "formatting": "None" } ]
Response
{ "name": "Example Template", "description": "string", "active": true, "public": false, "groups": [ { … } ], "attributes": [ { … } ] }