/
Create a new template
Create a new template for the specified organization.
Security
sessionAuth
The details of the template to be created.
- AIPIM Production Serverhttps://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/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"
]
}
}'The created template.
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": [ { … } ] }