{"type":"api","title":"Create asset type","meta":{"id":"/apps/pubhub/media/edge-intelligence-api/4eb0d8a649b4839c3bde782b4820822ee1b60b79/5459c39a-b81c-31ea-bf4d-bf7500ba3d5c","info":{"contact":{"email":"ei-cloud@cisco.com"},"description":"This is EI manager core service","license":{"name":"Licensing is primarily subscription based. Call Andy now!","url":"https://www.cisco.com"},"termsOfService":"http://swagger.io/terms/","title":"EI Manager Core Service","version":"1.0.0"},"security":[{"httpBearer":[]}],"tags":[{"description":"This tag will be used for EI agent configurations specific apis","name":"AgentConfig"},{"description":"This tag will be used for Asset Type configurations specific apis","name":"AssetTypeConfig"}],"externalDocs":{"description":"Find out more about Swagger","url":"http://swagger.io"},"x-parser-conf":{"apiKeyGenerator":{"$remoteModule":"./config/apikey.js"},"overview":{"markdownPath":"reference/overview.md"},"meta":{"useProxy":true},"disableAuthEditing":true,"serverConfig":"https://us.ciscoiot.com/nbapi/ei/v1"},"openapi":"3.0.3","servers":[{"url":"https://us.ciscoiot.com/nbapi/ei/v1"}],"securitySchemes":{"httpBearer":{"in":"header","name":"Authorization","type":"apiKey"}}},"spec":{"description":"Create asset type based on provided asset type configuration\u003cbr /\u003e Asset Management permission is needed to invoke this API","operationId":"createAssetType","parameters":[{"description":"Id of tenant","in":"header","name":"x-tenant-id","required":true,"schema":{"format":"uuid","type":"string","default":"1d5aafe3-6282-4fc1-a67a-585659d90038"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"config":{"type":"object"},"connectionType":{"enum":["EIPCIP","MODBUS_TCP","MODBUS_SERIAL","MQTT","NTCIP1202","NTCIP1203","NTCIP1204","OPC_UA","RSU","SERIAL"],"type":"string","$$ref":"#/components/schemas/ConnectionTypeEnum"},"dataModel":{"type":"object"},"name":{"type":"string"}},"type":"object","$$ref":"#/components/schemas/CreateOrUpdateAssetTypeRequest"}}},"description":"Asset Type details for creating Asset Type includes asset type name, connection type, configuration, and data model configuration","required":true,"x-originalParamName":"body"},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"type":"object","$$ref":"#/components/schemas/CreateOrUpdateAssetTypeResponse"}}},"description":"Successful operation"},"400":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"type":"object","$$ref":"#/components/schemas/ErrorResponse"}}},"description":"Invalid input"},"403":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"},"path":{"type":"string"},"status":{"type":"integer"},"timestamp":{"type":"string"}},"type":"object","$$ref":"#/components/schemas/ForbiddenErrorResponse"}}},"description":"Forbidden"}},"summary":"Create asset type","tags":["AssetTypeConfig"],"__originalOperationId":"createAssetType","security":[{"httpBearer":[]}],"method":"post","path":"/assetTypes"}}