{"type":"api","title":"Update Alarm Auto Clear config","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/3ba2ebf1-2c82-351f-9129-0701a2a03db6","info":{"title":"APIs exposed by Alarm Rest service","description":"APIs exposed by Alarm Rest service.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/EMF/fault-emf-api-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{server_ip}:30603/crosswork/alarm/v1","description":"Generated server url"}]},"spec":{"tags":["alarm-rest"],"summary":"Update Alarm Auto Clear config","description":"Supported Actions : Update Alarm Auto clear \n\nPayload attributes: \n\u003cb\u003esourceType\u003c/b\u003e: string (Alarm auto clear should be 'aac') \n\u003cb\u003esourceValue\u003c/b\u003e: string (Auto clear duration in minutes for example '1440') \n\u003cb\u003eeventTypes\u003c/b\u003e: array of strings (eventTypes can be single eventType or comma seperated for example ['Link down(admin down)']) ","operationId":"collectSeverityAndAlarmAgeDetails","parameters":[{"name":"Authorization","in":"header","required":true,"description":"Bearer token for authorization","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Configuration update for auto-clearing alarms","properties":{"sourceType":{"type":"string","description":"Type of source for auto-clear configuration","enum":["aac"],"example":"aac"},"sourceValue":{"type":"string","description":"Value for the source type"},"eventTypes":{"type":"array","description":"List of event types associated with the auto-clear","items":{"type":"string"}}},"$$ref":"#/components/schemas/Autoclearupdate"},"example":{"sourceType":"aac","sourceValue":"1440","eventTypes":["ROUTING-MPLS_TE-5-S2L_BFD_DOWN"]}}},"required":true},"responses":{"200":{"description":"Successful response indicating the status of alarm autoclear update.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"OK","description":"The status of the operation."},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Headers associated with the response.","example":{}},"body":{"type":"string","example":"Alarm autoclear update:success","description":"Message indicating the success of the alarm autoclear update."}}},"example":{"status":"OK","headers":{},"body":"Alarm autoclear update:success"}}}},"403":{"description":"Authentication and Authorization errors"},"500":{"description":"operation-failed Response with error"}},"__originalOperationId":"collectSeverityAndAlarmAgeDetails","method":"post","path":"/autoclear"}}