{"type":"api","title":"Upload Process","meta":{"id":"/apps/pubhub/media/edm-api-v2/a2a30bcc9ecab5281b65761ae61df7e0031d5691/f67a4e01-0023-334a-9a4a-7e606c2ef1a2","swagger":"2.0","info":{"contact":{"email":"devmgmt@cisco.com"},"description":"This is the IoT device management core service. The service is responsible for managing the lifecycle of various IoT gateways and endpoints deployed as part of the Field Area Networks","license":{"name":"Licensing is primarily subscription based. Call Andy now!","url":"https://www.cisco.com"},"termsOfService":"http://swagger.io/terms/","title":"IoT Device Lifecycle Management","version":"4.0.0"},"host":"us.ciscoiot.com","basePath":"/nbapi/edm/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"description":"This is the bearer Auth token.","in":"header","name":"Authorization","type":"apiKey"}},"security":[{"bearerAuth":[]}],"x-parser-conf":{"apiKeyGenerator":{"$remoteModule":"./config/apikey.js"}}},"spec":{"consumes":["multipart/form-data"],"description":"Upload a file in text/csv format to perform device management activities asynchronously.\u003cbr /\u003e One of the below permissions is needed to invoke this API\u003cbr /\u003e- Tenant Management\u003cbr /\u003e- Add Devices\u003cbr /\u003e- Manage Devices","operationId":"uploadProcess","parameters":[{"description":"The uuid of the tenant in whose context we are calling the api.","format":"uuid","in":"header","name":"x-tenant-id","required":true,"type":"string"},{"description":"The csv file to be uploaded","in":"formData","name":"file","required":true,"type":"file"},{"enum":["add","remove","update status","change properties","change group","update config group","update firmware group","update tunnel group","add label","remove label","add assets","update assets","remove assets"],"in":"formData","name":"action","required":true,"type":"string"}],"produces":["application/json"],"responses":{"202":{"description":"Accepted file for processing","schema":{"properties":{"jobId":{"example":40820151921,"type":"string"}}}},"400":{"description":"Bad Request or if any device fails to add/file has any issues reading","schema":{"description":"Specifies the error that occurred during the csv api request.","example":{"error":"Bad Request","message":"Required request part 'file' is not present","path":"","status":400,"timestamp":"1676526953843,"},"type":"object","$$ref":"#/definitions/CSVError"}},"401":{"description":"Unauthorized","schema":{"example":"Authentication Token is invalid","type":"string"}},"403":{"description":"Forbidden","schema":{"example":"Permission denied to access the resource","type":"string"}},"500":{"description":"Server failure","schema":{"example":"Could not connect to server","type":"string"}}},"summary":"Bulk data upload service using text/csv file format for device management activities asynchronously","tags":["csv_upload"],"__originalOperationId":"uploadProcess","security":[{"bearerAuth":[]}],"method":"post","path":"/csv_upload"}}