{"type":"api","title":"Clear Issues","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":"Update issues for a list of ids.\u003cbr /\u003e One of the below permissions is needed to invoke this API\u003cbr /\u003e- Tenant Management\u003cbr /\u003e- Manage Devices\u003cbr /\u003e- View Devices","operationId":"clearIssues","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":"Note to be attached along with closing issue","in":"query","name":"issueNote","required":false,"type":"string"},{"description":"Issues that needs to be updated","in":"body","name":"body","required":true,"schema":{"properties":{"issueIds":{"items":{"example":33900260009,"format":"int64","type":"integer"},"type":"array"}},"type":"object","$$ref":"#/definitions/IdList"}}],"produces":["application/json"],"responses":{"207":{"description":"successful closure of issues","schema":{"description":"Response used by methods that perform bulk operations","properties":{"failedCount":{"description":"Count of operations that failed","format":"int64","readOnly":true,"type":"integer"},"recordCount":{"description":"Count of records in the response","format":"int64","readOnly":true,"type":"integer"},"records":{"description":"Records returned by the API call","items":{"description":"Response model for the closed issues","properties":{"id":{"description":"Closed Issue ID","format":"int64","type":"integer"},"name":{"description":"Issue Name","type":"string"},"status":{"description":"HTTP status code","type":"integer"},"success":{"description":"Issue deletion operation status","type":"boolean"}},"required":["id","name","success","status"],"$$ref":"#/definitions/GenericResponse"},"readOnly":true,"type":"array"},"status":{"description":"HTTP status code","readOnly":true,"type":"integer"},"success":{"description":"Whether this REST API call was successful","readOnly":true,"type":"boolean"},"successCount":{"description":"Count of operations that were successful","format":"int64","readOnly":true,"type":"integer"}},"required":["failedCount","recordCount","successCount","records","status","success"],"$$ref":"#/definitions/GenericBulkResponse"}},"400":{"description":"Invalid request","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":"Unauthorized","type":"string"}},"403":{"description":"Forbidden","schema":{"example":"Permission denied to access the resouce","type":"string"}},"404":{"description":"Not found","schema":{"example":"Devices not found","type":"string"}}},"summary":"Update existing issues' properties","tags":["issues"],"__originalOperationId":"clearIssues","security":[{"bearerAuth":[]}],"method":"put","path":"/issues"}}