{"type":"api","title":"Create Custom Sub-Event Type","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":"Create Custom Sub-Event Type","description":"Creates a custom sub-event type with the specified details. \u003cbr\u003e \u003cbr\u003e\n **Mandatory Fields:**\n `eventType`,\n `category`,\n `defaultSeverity`,\n `description`\n \u003cbr\u003e\n \u003cbr\u003e\n `category`: Possible values include \"BFD\", \"BGP\", \"Carrier Ethernet\", \"Clients\", \"Controller\", \"Generic\", \"ISIS\", \"MPLS\", \"MPLS-L3VPN\", \"NTP\", \"OSPF\", \"Optical Transport\", \"PTP\", \"Performance\", \"RIP\", \"SONET\", \"SYNCE\", \"Security\", \"Switches and Routers\", \"System\", \"NCS\". \u003cbr\u003e\n `defaultSeverity`: Possible values include \"Critical\", \"Major\", \"Minor\", \"Warning\", \"Information\", \"Cleared\". \u003cbr\u003e","operationId":"createCustomSubEventType","requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Request object for creating a custom sub-event type","properties":{"eventType":{"type":"string","description":"Custom sub-event type","example":"FLEXO-LOM"},"category":{"type":"string","description":"Category of the sub-event type","example":"Switches and Routers"},"defaultSeverity":{"type":"string","description":"Default severity level of the sub-event type","example":"CRITICAL"},"description":{"type":"string","description":"Description of the sub-event type","example":"FlexO Loss of Multiframe"}},"required":["eventType","category","defaultSeverity","description"],"$$ref":"#/components/schemas/SubEventTypeRequest"}}},"required":true},"responses":{"200":{"description":"Sub-event type created successfully","content":{"application/json":{"schema":{"type":"object","description":"Response object for sub-event type operations","properties":{"status":{"type":"string","description":"Status of the sub-event type operation","example":"Success/Fail"},"message":{"type":"string","description":"Message indicating the result of the sub-event type operation","example":"error-message"}},"$$ref":"#/components/schemas/SubEventTypeResponse"}}}},"403":{"description":"Authentication and Authorization errors"},"500":{"description":"operation-failed Response with error"}},"__originalOperationId":"createCustomSubEventType","method":"post","path":"/custom/subeventtype"}}