{"type":"api","title":"Imports the templates provided","meta":{"id":"/apps/pubhub/media/cisco-catalyst-center-api-2-3-7-4/5f0ebf004a2d4799bf23d5900695a35a48893d24/e3488c7c-70e3-3936-bce5-55e87fc57590","info":{"title":"Intent API","description":"Cisco Catalyst Center Platform v. 2.3.7.4","version":"2.3.7.4"},"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"importsTheTemplatesProvided","tags":["Configuration Templates"],"deprecated":false,"summary":"Imports the templates provided","description":"Imports the templates provided in the DTO by project Name","parameters":[{"name":"Content-Type","description":"Request body content type","required":true,"schema":{"type":"string","default":"application/json"},"in":"header"},{"name":"projectName","description":"Project name to create template under the project","required":true,"schema":{"type":"string","default":"application/json"},"in":"path"},{"name":"doVersion","description":"If this flag is true then it creates a new version of the template with the imported contents in case if the templates already exists. \"\nIf this flag is false and if template already exists, then operation fails with 'Template already exists' error","required":false,"schema":{"type":"boolean","default":"application/json"},"in":"query"}],"requestBody":{"description":"request","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"UUID of tag"},"name":{"type":"string","description":"Name of tag"}},"required":["name"]},"description":"Tag object which needs to be applied on the template"},"author":{"type":"string","description":"Author of template"},"composite":{"type":"boolean","description":"Is it composite template"},"containingTemplates":{"type":"array","items":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"UUID of tag"},"name":{"type":"string","description":"Name of tag"}},"required":["name"]},"description":"Tag object which needs to be applied on the template"},"composite":{"type":"boolean","description":"Is it composite template"},"description":{"type":"string","description":"Description of template"},"deviceTypes":{"type":"array","items":{"type":"object","properties":{"productFamily":{"type":"string","description":"Device family"},"productSeries":{"type":"string","description":"Device series"},"productType":{"type":"string","description":"Device type"}},"required":["productFamily"]},"description":"Applicable device types"},"id":{"type":"string","description":"UUID of template"},"language":{"type":"string","description":"Template language (JINJA or VELOCITY)"},"name":{"type":"string","description":"Name of template"},"projectName":{"type":"string","description":"Project name"},"rollbackTemplateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string","description":"Bind to source"},"customOrder":{"type":"integer","description":"CustomOrder of template param"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"],"description":"Datatype of template param"},"defaultValue":{"type":"string","description":"Default value of template param"},"description":{"type":"string","description":"Description of template param"},"displayName":{"type":"string","description":"Display name of param"},"group":{"type":"string","description":"group"},"id":{"type":"string","description":"UUID of template param"},"instructionText":{"type":"string","description":"Instruction text for param"},"key":{"type":"string","description":"key"},"notParam":{"type":"boolean","description":"Is it not a variable"},"order":{"type":"integer","description":"Order of template param"},"paramArray":{"type":"boolean","description":"Is it an array"},"parameterName":{"type":"string","description":"Name of template param"},"provider":{"type":"string","description":"provider"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"UUID of range"},"maxValue":{"type":"integer","description":"Max value of range"},"minValue":{"type":"integer","description":"Min value of range"}},"required":["maxValue","minValue"]},"description":"Range of param"},"required":{"type":"boolean","description":"Is param required"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"},"description":"Default selection values"},"id":{"type":"string","description":"UUID of selection"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"],"description":"Type of selection(SINGLE_SELECT or MULTI_SELECT)"},"selectionValues":{"type":"object","properties":{},"description":"Selection values"}},"required":["selectionType","selectionValues"],"description":"Selection of param"}},"required":["dataType","parameterName"]},"description":"Rollback template params(variables)"},"templateContent":{"type":"string","description":"Template content"},"templateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string","description":"Bind to source"},"customOrder":{"type":"integer","description":"CustomOrder of template param"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"],"description":"Datatype of template param"},"defaultValue":{"type":"string","description":"Default value of template param"},"description":{"type":"string","description":"Description of template param"},"displayName":{"type":"string","description":"Display name of param"},"group":{"type":"string","description":"group"},"id":{"type":"string","description":"UUID of template param"},"instructionText":{"type":"string","description":"Instruction text for param"},"key":{"type":"string","description":"key"},"notParam":{"type":"boolean","description":"Is it not a variable"},"order":{"type":"integer","description":"Order of template param"},"paramArray":{"type":"boolean","description":"Is it an array"},"parameterName":{"type":"string","description":"Name of template param"},"provider":{"type":"string","description":"provider"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"UUID of range"},"maxValue":{"type":"integer","description":"Max value of range"},"minValue":{"type":"integer","description":"Min value of range"}},"required":["maxValue","minValue"]},"description":"Range of param"},"required":{"type":"boolean","description":"Is param required"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"},"description":"Default selection values"},"id":{"type":"string","description":"UUID of selection"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"],"description":"Type of selection(SINGLE_SELECT or MULTI_SELECT)"},"selectionValues":{"type":"object","properties":{},"description":"Selection values"}},"required":["selectionType","selectionValues"],"description":"Selection of param"}},"required":["dataType","parameterName"]},"description":"Template params(variables)"},"version":{"type":"string","description":"Current version of template"}},"required":["deviceTypes","language","name","projectName"]},"description":"Containing templates for composite template"},"createTime":{"type":"integer","description":"Create time of template"},"customParamsOrder":{"type":"boolean","description":"Custom Params Order"},"description":{"type":"string","description":"Description of template"},"deviceTypes":{"type":"array","items":{"type":"object","properties":{"productFamily":{"type":"string","description":"Device family"},"productSeries":{"type":"string","description":"Device series"},"productType":{"type":"string","description":"Device type"}},"required":["productFamily"]},"description":"Applicable device types"},"failurePolicy":{"type":"string","enum":["ABORT_ON_ERROR","CONTINUE_ON_ERROR","ROLLBACK_ON_ERROR","ROLLBACK_TARGET_ON_ERROR","ABORT_TARGET_ON_ERROR"],"description":"Define failure policy if template provisioning fails"},"id":{"type":"string","description":"UUID of template"},"language":{"type":"string","description":"Template language (JINJA or VELOCITY)"},"lastUpdateTime":{"type":"integer","description":"Update time of template"},"latestVersionTime":{"type":"integer","description":"Latest versioned template time"},"name":{"type":"string","description":"Name of template"},"parentTemplateId":{"type":"string","description":"Parent templateID"},"projectId":{"type":"string","description":"Project UUID"},"projectName":{"type":"string","description":"Project name"},"rollbackTemplateContent":{"type":"string","description":"Rollback template content"},"rollbackTemplateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string","description":"Bind to source"},"customOrder":{"type":"integer","description":"CustomOrder of template param"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"],"description":"Datatype of template param"},"defaultValue":{"type":"string","description":"Default value of template param"},"description":{"type":"string","description":"Description of template param"},"displayName":{"type":"string","description":"Display name of param"},"group":{"type":"string","description":"group"},"id":{"type":"string","description":"UUID of template param"},"instructionText":{"type":"string","description":"Instruction text for param"},"key":{"type":"string","description":"key"},"notParam":{"type":"boolean","description":"Is it not a variable"},"order":{"type":"integer","description":"Order of template param"},"paramArray":{"type":"boolean","description":"Is it an array"},"parameterName":{"type":"string","description":"Name of template param"},"provider":{"type":"string","description":"provider"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"UUID of range"},"maxValue":{"type":"integer","description":"Max value of range"},"minValue":{"type":"integer","description":"Min value of range"}},"required":["maxValue","minValue"]},"description":"Range of param"},"required":{"type":"boolean","description":"Is param required"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"},"description":"Default selection values"},"id":{"type":"string","description":"UUID of selection"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"],"description":"Type of selection(SINGLE_SELECT or MULTI_SELECT)"},"selectionValues":{"type":"object","properties":{},"description":"Selection values"}},"required":["selectionType","selectionValues"],"description":"Selection of param"}},"required":["dataType","parameterName"]},"description":"Rollback template params(variables)"},"softwareType":{"type":"string","description":"Applicable device software type"},"softwareVariant":{"type":"string","description":"Applicable device software variant"},"softwareVersion":{"type":"string","description":"Applicable device software version"},"templateContent":{"type":"string","description":"Template content"},"templateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string","description":"Bind to source"},"customOrder":{"type":"integer","description":"CustomOrder of template param"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"],"description":"Datatype of template param"},"defaultValue":{"type":"string","description":"Default value of template param"},"description":{"type":"string","description":"Description of template param"},"displayName":{"type":"string","description":"Display name of param"},"group":{"type":"string","description":"group"},"id":{"type":"string","description":"UUID of template param"},"instructionText":{"type":"string","description":"Instruction text for param"},"key":{"type":"string","description":"key"},"notParam":{"type":"boolean","description":"Is it not a variable"},"order":{"type":"integer","description":"Order of template param"},"paramArray":{"type":"boolean","description":"Is it an array"},"parameterName":{"type":"string","description":"Name of template param"},"provider":{"type":"string","description":"provider"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"UUID of range"},"maxValue":{"type":"integer","description":"Max value of range"},"minValue":{"type":"integer","description":"Min value of range"}},"required":["maxValue","minValue"]},"description":"Range of param"},"required":{"type":"boolean","description":"Is param required"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"},"description":"Default selection values"},"id":{"type":"string","description":"UUID of selection"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"],"description":"Type of selection(SINGLE_SELECT or MULTI_SELECT)"},"selectionValues":{"type":"object","properties":{},"description":"Selection values"}},"required":["selectionType","selectionValues"],"description":"Selection of param"}},"required":["dataType","parameterName"]},"description":"Template params(variables)"},"validationErrors":{"type":"object","properties":{"rollbackTemplateErrors":{"type":"object","description":"Validation or design conflicts errors of rollback template"},"templateErrors":{"type":"object","description":"Validation or design conflicts errors"},"templateId":{"type":"string","description":"UUID of template"},"templateVersion":{"type":"string","description":"Current version of template"}},"description":"Validation Errors of template content"},"version":{"type":"string","description":"Current version of template"}},"required":["deviceTypes","language","name","projectName","softwareType"]},"description":"","$$ref":"#/components/schemas/importsTheTemplatesProvidedRequest"}}},"required":true},"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object","properties":{"taskId":{"type":"object","description":""},"url":{"type":"string","description":""}},"description":""},"version":{"type":"string","description":""}},"description":"","$$ref":"#/components/schemas/importsTheTemplatesProvidedResponse"}}}},"201":{"description":"The POST/PUT request was fulfilled and a new resource has been created. Information about the resource is in the response body.","content":{}},"202":{"description":"Request was accepted. Use Task ID to track the progress","content":{}},"204":{"description":"The request was successful, however no content was returned.","content":{}},"206":{"description":"The GET request included a Range Header, and the server responded with the partial content matching the range.","content":{}},"400":{"description":"Bad Request","content":{}},"401":{"description":"The client's authentication credentials included with the request are missing or invalid.","content":{}},"403":{"description":"The server recognizes the authentication credentials, but the client is not authorized to perform this request.","content":{}},"404":{"description":"Not Found","content":{}},"409":{"description":"The target resource is in a conflicted state (for example, an edit conflict where a resource is being edited by multiple users). Retrying the request later might succeed.","content":{}},"415":{"description":"The client sent a request body in a format that the server does not support (for example, XML to a server that only accepts JSON).","content":{}},"500":{"description":"Internal Server Error","content":{}},"501":{"description":"The server has not implemented the functionality required to fulfill the request.","content":{}},"503":{"description":"The server is (temporarily) unavailable.","content":{}},"504":{"description":"The server did not respond inside time restrictions and timed-out.","content":{}}},"x-rapi-id":"4d86-f92a-4a7b-90bb","x-rapi-overview":"Imports the templates provided in the DTO by project Name","x-rapi-domain":"Site Management","x-rapi-subdomain":"Configuration Templates","x-rapi-version":"1.0.0","x-rapi-internalPath":"/api/v1/template-programmer/project/name/${projectName}/template/importtemplates","x-rapi-publicPath":"/dna/intent/api/v1/template-programmer/project/name/${projectName}/template/importtemplates","x-rapi-registerInKONG":true,"x-rapi-banner":[],"__originalOperationId":"importsTheTemplatesProvided","method":"post","path":"/dna/intent/api/v1/template-programmer/project/name/{projectName}/template/importtemplates"}}