Zenduty Global Router Rules API

The Rules of the Global Router in an Account are represented by this object. Visit this link to view the documentation for the global alert routing rules https://docs.zenduty.com/docs/globalalertrouting

OpenAPI Specification

zenduty-global-router-rules-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  version: 1.1.0
  title: Zenduty Account Custom Role Global Router Rules API
  termsOfService: https://zenduty.com
  contact:
    email: vishwa@zenduty.com
  license:
    name: Apache 2.0
  x-logo:
    url: data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9Ii05OC4zIDE3My43IDIwNi4zIDUzLjIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgLTk4LjMgMTczLjcgMjA2LjMgNTMuMjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6IzBGMTcyQTt9DQoJLnN0MXtmaWxsOiNGRDlBMDA7fQ0KPC9zdHlsZT4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0tMjksMjEwLjJoNi4zYzIuNywwLDQuOSwyLjIsNC45LDQuOWgtMTguMWMwLTUuMyw0LjEtOS40LDcuOS0xMy4xbDMuOC0zLjdoLTcuMWMtMi41LDAtNC42LTIuMS00LjYtNC42aDE4DQoJYzAsNS4zLTQuMSw5LjQtNy44LDEzLjJMLTI5L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My0wLjktMC44LTEuNWMwLjktMS4yLDEuOC0yLjMsMi43LTMuMw0KCWMyLjEtMi4yLDQuNC00LjEsNi45LTUuOGwwLjEtMC4xYzAuOC0wLjYsMS42LTEuMSwyLjQtMS42bDExLjQtNy40bDE1LjktMTAuNGg3LjdDLTQ4LjgsMTkyLjktNDguNCwxOTMuNi00OC42LDE5NC4zeiIvPg0KPC9zdmc+DQo=
  description: "# Introduction\n\nZenduty is a cutting edge platform for incident management. With high level automation, Zenduty enables faster and better incident resolution keeping developers first.\n\n\n  Javascript Libraries: https://github.com/Zenduty/zenduty-js\n\n  Ruby Libraries: https://github.com/Zenduty/zenduty-ruby\n\n  Python Libraries: https://github.com/Zenduty/zenduty-python-sdk\n\n  Postman Collection for Zenduty API: https://github.com/Zenduty/zenduty-api-postman.git\n\n  Account-level roles and permissions: https://docs.zenduty.com/docs/users#account-level-roles-and-permissions\n\n  Team-level roles and permissions: https://docs.zenduty.com/docs/users#team-level-roles-and-permissions\n"
servers:
- url: https://www.zenduty.com
security:
- bearerAuth: []
tags:
- name: Global Router Rules
  description: The Rules of the Global Router in an Account are represented by this object. Visit this link to view the documentation for the global alert routing rules https://docs.zenduty.com/docs/globalalertrouting
paths:
  /api/v2/account/events/router/{router_id}/rulesets/:
    parameters:
    - name: router_id
      in: path
      description: unique_id of the Global Router object
      schema:
        type: string
      required: true
    post:
      tags:
      - Global Router Rules
      summary: Create the Global Router Rule object
      description: Create the Global Router Rule object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Global Router Rule object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlobalRouterRulePayload'
            example:
              name: Rule for Grafana Integration
              actions:
              - action_type: 0
                integration: 0c4e939d-6d54-401e-ad83-6114368bdd0b
              rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94":{"type":"rule","id":"898aa9ba-0123-4456-b89a-b16a429f5d94","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.commonLabels.alertname","grafana"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
          application/xml:
            schema:
              $ref: '#/components/schemas/GlobalRouterRulePayload'
            example:
              name: Rule for Grafana Integration
              actions:
              - action_type: 0
                integration: 0c4e939d-6d54-401e-ad83-6114368bdd0b
              rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94":{"type":"rule","id":"898aa9ba-0123-4456-b89a-b16a429f5d94","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.commonLabels.alertname","grafana"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
                unique_id: 4c9924cc-d051-4e58-978b-d673a7de540a
                name: Rule for Grafana Integration
                position: 7
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94":{"type":"rule","id":"898aa9ba-0123-4456-b89a-b16a429f5d94","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.commonLabels.alertname","grafana"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: fb742645-dc2f-4b76-bf44-8a0a8aa48e09
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
                unique_id: b0c1867f-dfd2-4cb3-a298-0b9f322fe716
                name: Infra Global Router
                description: This is Infra Global Router for this account
                account: 61fb2d9e-088b-471f-a6d7-872c03cf483d
                is_enabled: true
                integration_key: cb1de2f2-bb17-4a6c-8a80-03739ca0a911
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
    get:
      tags:
      - Global Router Rules
      summary: List all Global Router Rule objects
      description: Returns a list of Global Router Rule objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
              - unique_id: 12edd6c5-2217-4b53-b635-83083f420dd8
                name: position 1
                position: 1
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"8bbbbaba-cdef-4012-b456-7184d20607aa":{"type":"rule","id":"8bbbbaba-cdef-4012-b456-7184d20607aa","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.payload.summary","testing"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","8bbbbaba-cdef-4012-b456-7184d20607aa"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: 6d90b452-6b5f-4ea1-8b58-9ad091aba040
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                - unique_id: be64664d-ab1d-419a-ab50-d48b05cbc1e6
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
              - unique_id: 4c9924cc-d051-4e58-978b-d673a7de540a
                name: Rule for Grafana Integration
                position: 2
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94":{"type":"rule","id":"898aa9ba-0123-4456-b89a-b16a429f5d94","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.commonLabels.alertname","grafana"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: fb742645-dc2f-4b76-bf44-8a0a8aa48e09
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
              - unique_id: 12edd6c5-2217-4b53-b635-83083f420dd8
                name: position 1
                position: 1
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"8bbbbaba-cdef-4012-b456-7184d20607aa":{"type":"rule","id":"8bbbbaba-cdef-4012-b456-7184d20607aa","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.payload.summary","testing"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","8bbbbaba-cdef-4012-b456-7184d20607aa"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: 6d90b452-6b5f-4ea1-8b58-9ad091aba040
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                - unique_id: be64664d-ab1d-419a-ab50-d48b05cbc1e6
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
              - unique_id: 4c9924cc-d051-4e58-978b-d673a7de540a
                name: Rule for Grafana Integration
                position: 2
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94":{"type":"rule","id":"898aa9ba-0123-4456-b89a-b16a429f5d94","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.commonLabels.alertname","grafana"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: fb742645-dc2f-4b76-bf44-8a0a8aa48e09
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
    put:
      tags:
      - Global Router Rules
      summary: Update the Global Router Rule object
      description: Updates the position of the Global Router Rule object by setting the position and rule unique id passed in the request body
      requestBody:
        description: Request body parameters to update the position of Global Router Rule object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlobalRouterRulePositionPayload'
            example:
              rule: 12edd6c5-2217-4b53-b635-83083f420dd8
              position: 1
          application/xml:
            schema:
              $ref: '#/components/schemas/GlobalRouterRulePositionPayload'
            example:
              rule: 12edd6c5-2217-4b53-b635-83083f420dd8
              position: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
              - unique_id: 12edd6c5-2217-4b53-b635-83083f420dd8
                name: position 1
                position: 1
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"8bbbbaba-cdef-4012-b456-7184d20607aa":{"type":"rule","id":"8bbbbaba-cdef-4012-b456-7184d20607aa","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.payload.summary","testing"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","8bbbbaba-cdef-4012-b456-7184d20607aa"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: 6d90b452-6b5f-4ea1-8b58-9ad091aba040
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                - unique_id: be64664d-ab1d-419a-ab50-d48b05cbc1e6
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
              - unique_id: c757e713-e2c4-40f1-813a-6c82b487d9b2
                name: position 2
                position: 2
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"8bbbbaba-cdef-4012-b456-7184d20607aa":{"type":"rule","id":"8bbbbaba-cdef-4012-b456-7184d20607aa","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.payload.summary","testing"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","8bbbbaba-cdef-4012-b456-7184d20607aa"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: 69efe5d0-450e-4842-98ce-2bd4235ed4f7
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                - unique_id: ca20dc3c-bbd8-467d-8aba-ad50547858c2
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
              - unique_id: 12edd6c5-2217-4b53-b635-83083f420dd8
                name: position 1
                position: 1
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"8bbbbaba-cdef-4012-b456-7184d20607aa":{"type":"rule","id":"8bbbbaba-cdef-4012-b456-7184d20607aa","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.payload.summary","testing"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","8bbbbaba-cdef-4012-b456-7184d20607aa"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: 6d90b452-6b5f-4ea1-8b58-9ad091aba040
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                - unique_id: be64664d-ab1d-419a-ab50-d48b05cbc1e6
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
              - unique_id: c757e713-e2c4-40f1-813a-6c82b487d9b2
                name: position 2
                position: 2
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"8bbbbaba-cdef-4012-b456-7184d20607aa":{"type":"rule","id":"8bbbbaba-cdef-4012-b456-7184d20607aa","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.payload.summary","testing"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","8bbbbaba-cdef-4012-b456-7184d20607aa"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: 69efe5d0-450e-4842-98ce-2bd4235ed4f7
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                - unique_id: ca20dc3c-bbd8-467d-8aba-ad50547858c2
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
  /api/v2/account/events/router/{router_id}/rulesets/{ruleset_id}/:
    parameters:
    - name: router_id
      in: path
      description: unique_id of the Global Router object
      schema:
        type: string
      required: true
    - name: ruleset_id
      in: path
      description: unique_id of the Global Router Rule object
      schema:
        type: string
      required: true
    get:
      tags:
      - Global Router Rules
      summary: Retrieve the Global Router Rule object
      description: Retrieve the specified Global Router Rule object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
                unique_id: 4c9924cc-d051-4e58-978b-d673a7de540a
                name: Rule for Grafana Integration
                position: 2
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94":{"type":"rule","id":"898aa9ba-0123-4456-b89a-b16a429f5d94","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.commonLabels.alertname","grafana"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: fb742645-dc2f-4b76-bf44-8a0a8aa48e09
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouterRule'
              example:
                unique_id: 4c9924cc-d051-4e58-978b-d673a7de540a
                name: Rule for Grafana Integration
                position: 2
                rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94":{"type":"rule","id":"898aa9ba-0123-4456-b89a-b16a429f5d94","properties":{"field":"alert.payload","operator":"payloadsearch","value":["$.commonLabels.alertname","grafana"],"valueSrc":["value","value"],"operatorOptions":{"ploperator":"equal"},"valueType":["text","text"]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                actions:
                - unique_id: fb742645-dc2f-4b76-bf44-8a0a8aa48e09
                  action_type: 0
                  service:
                    name: Team 1 Service 1
                    unique_id: 32a7c77f-aa0a-49de-ab52-e52f0aa77888
                  team:
                    name: Team 1
                    unique_id: 91fd3cc0-ebd6-43b8-aab3-67a05762ba0c
                  integration_obj:
                    unique_id: 0c4e939d-6d54-401e-ad83-6114368bdd0b
                    name: Anodot
                router: e9be034e-6076-4953-a315-9a3666ffe774
        '400':
          description: Bad Request
          content:
            application/json:
              example:
                detail: This request can not be processed.
            application/xml:
              example:
                detail: This request can not be processed.
        '403':
          description: Forbidden
          content:
            application/json:
              example:
                detail: You do not have permission to perform this action.
            application/xml:
              example:
                detail: You do not have permission to perform this action.
        '404':
          description: Not Found
          content:
            application/json:
              example:
                detail: Not Found.
            application/xml:
              example:
                detail: Not Found.
    put:
      tags:
      - Global Router Rules
      summary: Update the Global Router Rule data
      description: Updates the specified Global Router Rule object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
      requestBody:
        description: Request body parameters to update the Global Router Rule object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlobalRouterRulePayload'
            example:
              name: Rule for Grafana Integration Updated
              rule_json: '{"type":"group","id":"9a99988a-0123-4456-b89a-b1607f326fd8","children1":{"898aa9ba-0123-4456-b89a-b16a429f5d94"

# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/zenduty/refs/heads/main/openapi/zenduty-global-router-rules-api-openapi.yml