{"type":"api","title":"Imports the templates provided","meta":{"id":"/apps/pubhub/media/dna-center-235/0e427c513038595590fc5a0593cb0e208dd78571/2192edf3-d24e-3461-ab8c-12a97b547df4","swagger":"2.0","info":{"description":"Cisco DNA Center Platform v. 2.3.5","version":"2.3.5","title":"Intent API"},"schemes":["https"],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"importsTheTemplatesProvided","tags":["Configuration Templates"],"summary":"Imports the templates provided","description":"Imports the templates provided in the DTO by project Name","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"request","description":"request","required":true,"schema":{"type":"object","properties":{"author":{"type":"string"},"composite":{"type":"boolean"},"containingTemplates":{"type":"array","items":{"type":"object","properties":{"composite":{"type":"boolean"},"description":{"type":"string"},"deviceTypes":{"type":"array","items":{"type":"object","properties":{"productFamily":{"type":"string"},"productSeries":{"type":"string"},"productType":{"type":"string"}}}},"id":{"type":"string"},"language":{"type":"string"},"name":{"type":"string"},"projectName":{"type":"string"},"rollbackTemplateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string"},"customOrder":{"type":"integer"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"]},"defaultValue":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"},"group":{"type":"string"},"id":{"type":"string"},"instructionText":{"type":"string"},"key":{"type":"string"},"notParam":{"type":"boolean"},"order":{"type":"integer"},"paramArray":{"type":"boolean"},"parameterName":{"type":"string"},"provider":{"type":"string"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"maxValue":{"type":"integer"},"minValue":{"type":"integer"}}}},"required":{"type":"boolean"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"]},"selectionValues":{"type":"object","properties":{}}}}}}},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"templateContent":{"type":"string"},"templateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string"},"customOrder":{"type":"integer"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"]},"defaultValue":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"},"group":{"type":"string"},"id":{"type":"string"},"instructionText":{"type":"string"},"key":{"type":"string"},"notParam":{"type":"boolean"},"order":{"type":"integer"},"paramArray":{"type":"boolean"},"parameterName":{"type":"string"},"provider":{"type":"string"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"maxValue":{"type":"integer"},"minValue":{"type":"integer"}}}},"required":{"type":"boolean"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"]},"selectionValues":{"type":"object","properties":{}}}}}}},"version":{"type":"string"}}}},"createTime":{"type":"integer"},"customParamsOrder":{"type":"boolean"},"description":{"type":"string"},"deviceTypes":{"type":"array","items":{"type":"object","properties":{"productFamily":{"type":"string"},"productSeries":{"type":"string"},"productType":{"type":"string"}}}},"failurePolicy":{"type":"string","enum":["ABORT_ON_ERROR","CONTINUE_ON_ERROR","ROLLBACK_ON_ERROR","ROLLBACK_TARGET_ON_ERROR","ABORT_TARGET_ON_ERROR"]},"id":{"type":"string"},"language":{"type":"string"},"lastUpdateTime":{"type":"integer"},"latestVersionTime":{"type":"integer"},"name":{"type":"string"},"parentTemplateId":{"type":"string"},"projectAssociated":{"type":"boolean"},"projectId":{"type":"string"},"projectName":{"type":"string"},"rollbackTemplateContent":{"type":"string"},"rollbackTemplateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string"},"customOrder":{"type":"integer"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"]},"defaultValue":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"},"group":{"type":"string"},"id":{"type":"string"},"instructionText":{"type":"string"},"key":{"type":"string"},"notParam":{"type":"boolean"},"order":{"type":"integer"},"paramArray":{"type":"boolean"},"parameterName":{"type":"string"},"provider":{"type":"string"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"maxValue":{"type":"integer"},"minValue":{"type":"integer"}}}},"required":{"type":"boolean"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"]},"selectionValues":{"type":"object","properties":{}}}}}}},"softwareType":{"type":"string"},"softwareVariant":{"type":"string"},"softwareVersion":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"templateContent":{"type":"string"},"templateParams":{"type":"array","items":{"type":"object","properties":{"binding":{"type":"string"},"customOrder":{"type":"integer"},"dataType":{"type":"string","enum":["STRING","INTEGER","IPADDRESS","MACADDRESS","SECTIONDIVIDER"]},"defaultValue":{"type":"string"},"description":{"type":"string"},"displayName":{"type":"string"},"group":{"type":"string"},"id":{"type":"string"},"instructionText":{"type":"string"},"key":{"type":"string"},"notParam":{"type":"boolean"},"order":{"type":"integer"},"paramArray":{"type":"boolean"},"parameterName":{"type":"string"},"provider":{"type":"string"},"range":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"maxValue":{"type":"integer"},"minValue":{"type":"integer"}}}},"required":{"type":"boolean"},"selection":{"type":"object","properties":{"defaultSelectedValues":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"selectionType":{"type":"string","enum":["SINGLE_SELECT","MULTI_SELECT"]},"selectionValues":{"type":"object","properties":{}}}}}}},"validationErrors":{"type":"object","properties":{"rollbackTemplateErrors":{"type":"object"},"templateErrors":{"type":"object"},"templateId":{"type":"string"},"templateVersion":{"type":"string"}}},"version":{"type":"string"},"versionsInfo":{"type":"array","items":{"type":"object","properties":{"author":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"version":{"type":"string"},"versionComment":{"type":"string"},"versionTime":{"type":"integer"}}}}},"$$ref":"#/definitions/TemplateDTO"},"in":"body"},{"name":"Content-Type","description":"Request body content type","default":"application/json","required":true,"type":"string","in":"header"},{"name":"projectName","description":"Project name to create template under the project","required":true,"type":"string","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","default":false,"required":false,"type":"boolean","in":"query"}],"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","schema":{"type":"object","properties":{"response":{"type":"object","properties":{"taskId":{"type":"object"},"url":{"type":"string"}}},"version":{"type":"string"}},"$$ref":"#/definitions/TaskIdResult"}},"201":{"description":"The POST/PUT request was fulfilled and a new resource has been created. Information about the resource is in the response body."},"202":{"description":"Request was accepted. Use Task ID to track the progress"},"204":{"description":"The request was successful, however no content was returned."},"206":{"description":"The GET request included a Range Header, and the server responded with the partial content matching the range."},"400":{"description":"Bad Request"},"401":{"description":"The client's authentication credentials included with the request are missing or invalid."},"403":{"description":"The server recognizes the authentication credentials, but the client is not authorized to perform this request."},"404":{"description":"Not Found"},"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."},"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)."},"500":{"description":"Internal Server Error"},"501":{"description":"The server has not implemented the functionality required to fulfill the request."},"503":{"description":"The server is (temporarily) unavailable."},"504":{"description":"The server did not respond inside time restrictions and timed-out."}},"__originalOperationId":"importsTheTemplatesProvided","method":"post","path":"/dna/intent/api/v1/template-programmer/project/name/{projectName}/template/importtemplates"}}