{"type":"api","title":"Export For Group Assignment","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":["application/json"],"description":"Returns a single csv file with config-group and associated devices information \u003cbr /\u003e One of the below permissions is needed to invoke this API\u003cbr /\u003e- Tenant Management\u003cbr /\u003e- Manage Devices\u003cbr /\u003e- Manage Firmware Upgrades\u003cbr /\u003e- Manage Groups","operationId":"exportForGroupAssignment","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":"Unique Group id of the group to be added to the csv file","in":"path","name":"group_id","required":true,"type":"integer"},{"description":"Devices that needs to be vallidated and added to the csv file","in":"body","name":"body","required":true,"schema":{"description":"list of devices to add","items":{"example":{"eid":"IE-3200-8P2S+12345612347","fields":{"configGroup":"default-ie3200","deviceType":"ie3200","field:name":"ie3200-three"}},"type":"object"},"type":"array","uniqueItems":true,"$$ref":"#/definitions/NewDeviceList"}}],"produces":["text/csv","application/json"],"responses":{"200":{"description":"Generated csv of devices and group information","schema":{"type":"string"}},"400":{"description":"Bad Request or if any device doesn't exist or the device doesn't belong to the group","schema":{"description":"Specifies the error that occurred during the request.","example":{"code":"10000","message":"Short message about the error","meta":"more information about that error"},"properties":{"code":{"description":"The error code that occurred in application level.","type":"number"},"message":{"description":"A user readable message that describes the error in details.","type":"string"},"meta":{"description":"Contains more information about the error message. For example when a validation error occurs, this field describes the fields that were invalid and the validation error that occurred. The content of this object can vary based on the type of error.\n","type":"object"}},"required":["code","message"],"type":"object","$$ref":"#/definitions/error"}},"401":{"description":"Unauthorized","schema":{"example":"Authentication Token is invalid","type":"string"}},"403":{"description":"Forbidden","schema":{"example":"Permission denied to access the resource","type":"string"}},"404":{"description":"Invalid group-id supplied","schema":{"example":"Group not found by unique id","type":"string"}}},"summary":"Generate a csv with the columns/values corresponding to the selected group and the eid list","tags":["groups"],"__originalOperationId":"exportForGroupAssignment","security":[{"bearerAuth":[]}],"method":"post","path":"/groups/{group_id}/grp_assignment_template_csv"}}