openapi: 3.0.0
info:
  version: 1.1.0
  title: Zenduty
  termsOfService: 'https://zenduty.com'
  contact:
    email: vishwa@zenduty.com
  license:
    name: Apache 2.0
  x-logo:
    url: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9Ii05OC4zIDE3My43IDIwNi4zIDUzLjIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgLTk4LjMgMTczLjcgMjA2LjMgNTMuMjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6IzBGMTcyQTt9DQoJLnN0MXtmaWxsOiNGRDlBMDA7fQ0KPC9zdHlsZT4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0tMjksMjEwLjJoNi4zYzIuNywwLDQuOSwyLjIsNC45LDQuOWgtMTguMWMwLTUuMyw0LjEtOS40LDcuOS0xMy4xbDMuOC0zLjdoLTcuMWMtMi41LDAtNC42LTIuMS00LjYtNC42aDE4DQoJYzAsNS4zLTQuMSw5LjQtNy44LDEzLjJMLTI5LDIxMC4yeiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTMuNywyMDUuOGgtMTUuNWMwLjEsMS41LDAuNiwyLjcsMS42LDMuNmMwLjksMC45LDIuMSwxLjIsMy41LDEuMmMyLDAsMy40LTAuOSw0LjMtMi41aDUuOA0KCWMtMC42LDItMS44LDMuNi0zLjUsNC45Yy0xLjgsMS4yLTMuOSwyLTYuNCwyYy0yLDAtMy45LTAuNS01LjUtMS40Yy0xLjYtMC45LTIuOS0yLjEtMy44LTMuN2MtMC45LTEuNi0xLjQtMy40LTEuNC01LjcNCgljMC0yLjEsMC41LTQuMSwxLjQtNS43YzAuOS0xLjYsMi4xLTIuOCwzLjgtMy43YzEuNi0wLjksMy40LTEuNCw1LjUtMS40YzIsMCwzLjgsMC40LDUuNCwxLjJjMS42LDAuOSwyLjgsMi4xLDMuNywzLjYNCgljMC45LDEuNiwxLjMsMy4zLDEuMyw1LjRDMy44LDIwNC42LDMuOCwyMDUuMiwzLjcsMjA1Ljh6IE0tMS43LDIwMi4yYzAtMS40LTAuNS0yLjUtMS41LTMuMmMtMS0wLjktMi4xLTEuMi0zLjUtMS4yDQoJYy0xLjQsMC0yLjQsMC40LTMuNCwxLjJjLTAuOSwwLjctMS41LDEuOC0xLjYsMy4zaDEwLjFWMjAyLjJ6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjcuOSwxOTguNGMwLjktMS42LDItMi45LDMuNS0zLjhjMS41LTAuOSwzLjEtMS40LDQuOS0xLjRjMS40LDAsMi42LDAuMywzLjksMC45YzEuMywwLjYsMi4zLDEuNCwzLDIuNHYtMTYuNw0KCWg1LjR2MzVoLTUuNHYtMy4xYy0wLjYsMS0xLjYsMS45LTIuOCwyLjVjLTEuMywwLjYtMi42LDEtNC4yLDFjLTEuOCwwLTMuNC0wLjUtNC45LTEuNGMtMS41LTAuOS0yLjYtMi4zLTMuNS0zLjkNCgljLTAuOS0xLjYtMS4zLTMuNS0xLjMtNS44QzI2LjYsMjAyLDI3LDIwMCwyNy45LDE5OC40eiBNNDIuNSwyMDAuOWMtMC41LTAuOS0xLjMtMS42LTItMi4xYy0wLjktMC41LTEuOC0wLjgtMi44LTAuOA0KCWMtMSwwLTEuOSwwLjMtMi44LDAuOGMtMC45LDAuNS0xLjUsMS4xLTIsMi4xYy0wLjUsMC45LTAuOCwyLTAuOCwzLjNjMCwxLjMsMC4zLDIuNCwwLjgsMy40YzAuNSwxLDEuMywxLjYsMiwyLjENCgljMC45LDAuNSwxLjgsMC44LDIuOCwwLjhjMSwwLDEuOS0wLjMsMi44LTAuOGMwLjktMC41LDEuNS0xLjMsMi0yLjFjMC41LTAuOSwwLjgtMiwwLjgtMy40UzQzLDIwMS44LDQyLjUsMjAwLjl6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjUuNCwyMDQuM3YxMC42aC01di0xMC42YzAtMi0wLjUtMy41LTEuNS00LjVjLTEtMS4xLTIuMS0xLjYtMy41LTEuNnMtMi41LDAuNS0zLjUsMS42DQoJYy0wLjksMS0xLjQsMi42LTEuNCw0LjV2MTAuNkg1LjV2LTEwLjZjMC0yLjEsMC41LTQsMS4zLTUuN2MwLjktMS42LDItMi45LDMuNS0zLjhzMy4xLTEuNCw1LTEuNHMzLjUsMC41LDUsMS40DQoJYzEuNSwwLjksMi42LDIuMSwzLjUsMy44QzI0LjksMjAwLjMsMjUuNCwyMDIuMiwyNS40LDIwNC4zeiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTUxLjMsMjA0LjF2LTEwLjRoNXYxMC40YzAsMiwwLjUsMy41LDEuNSw0LjVjMSwxLjEsMi4xLDEuNiwzLjUsMS42YzEuNCwwLDIuNS0wLjUsMy41LTEuNg0KCWMwLjktMSwxLjQtMi42LDEuNC00LjV2LTEwLjRoNC45djEwLjRjMCwyLjEtMC41LDQtMS4zLDUuN2MtMC45LDEuNi0yLDIuOS0zLjUsMy44Yy0xLjUsMC45LTMuMSwxLjQtNSwxLjRzLTMuNS0wLjUtNS0xLjQNCgljLTEuNS0wLjktMi42LTIuMS0zLjUtMy44QzUxLjcsMjA4LjEsNTEuMywyMDYuMiw1MS4zLDIwNC4xeiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTgwLjcsMTk4djEwLjJjMCwwLjgsMC4xLDEuMywwLjUsMS41YzAuNCwwLjQsMC45LDAuNSwxLjgsMC41aDIuNXY0LjVoLTMuNGMtNC41LDAtNi44LTIuMS02LjgtNi41VjE5OGgtNS4xDQoJdi00LjRoNS4xdi04LjdoNS40djguN2g0LjhsMi42LDQuNEg4MC43eiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTEwNy40LDE5My42bC04LjcsMjAuNmwtNSwxMS44aC01LjdsNS4xLTExLjhsLTguNC0yMC42aDZsNS40LDE0LjdsNS41LTE0LjdIMTA3LjR6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNLTY2LjksMTg5LjJjLTEuOSwwLTQuNy0yLjEtNC43LTQuOHYtMy42YzAtMi43LDAuOC00LjgsNC43LTQuOGMzLjksMCw0LjcsMi4xLDQuNyw0Ljh2My42DQoJQy02Mi4yLDE4Ny4xLTY1LDE4OS4yLTY2LjksMTg5LjJ6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNLTM3LjcsMjIzaC0yMS41bDMuOC0xMS40bDAuNy0xLjhjNC4yLDEuNywxMy4xLDcuMiwxNy43LDExLjZDLTM2LjQsMjIyLjEtMzYuOCwyMjMtMzcuNywyMjN6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNLTU3LjMsMTkyLjlsLTE1LjksMTAuNGMtNC4yLTIuNS05LjItNS45LTEyLjItOC44Yy0wLjYtMC42LTAuMi0xLjUsMC43LTEuNUgtNTcuM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0tNDguNiwxOTQuM2wtNiwxNS42bC0wLjcsMS44bC0zLjgsMTEuNEgtOTZjLTAuOCwwLTEuMy0wLjktMC44LTEuNWMwLjktMS4yLDEuOC0yLjMsMi43LTMuMw0KCWMyLjEtMi4yLDQuNC00LjEsNi45LTUuOGwwLjEtMC4xYzAuOC0wLjYsMS42LTEuMSwyLjQtMS42bDExLjQtNy40bDE1LjktMTAuNGg3LjdDLTQ4LjgsMTkyLjktNDguNCwxOTMuNi00OC42LDE5NC4zeiIvPg0KPC9zdmc+DQo='
  description: |
    # Introduction

    Zenduty is a cutting edge platform for incident management. With high level automation, Zenduty enables faster and better incident resolution keeping developers first.
      
      
      Javascript Libraries: https://github.com/Zenduty/zenduty-js
      
      Ruby Libraries: https://github.com/Zenduty/zenduty-ruby
      
      Python Libraries: https://github.com/Zenduty/zenduty-python-sdk

      Postman Collection for Zenduty API: https://github.com/Zenduty/zenduty-api-postman.git
      
      Account-level roles and permissions: https://docs.zenduty.com/docs/users#account-level-roles-and-permissions
      
      Team-level roles and permissions: https://docs.zenduty.com/docs/users#team-level-roles-and-permissions
      
      
tags:
  - name: Account Member
    description: 'This object represents a user of the account. Each account member object has a role, which can be owner, admin, or user. Each account has a single owner, but the admins and users can be multiple.'
  - name: Account Custom Role
    description: 'This object represents a custom role of the account. Each custom role object has custom permissions, which the account admin can set from account level permissions and assign this custom role to a particular user.'
  - name: User Custom Role
    description: This object represents a user's custom role. Each user can be assigned to only one custom role.
  - name: Notification Rules
    description: This object represents a user's notification rules. A user can have notification rules for high urgency and low urgency incidents.
  - name: Forwarding Rules
    description: This object represents a user's forwarding rules. A user can forward his notifications to the other account members in case an incident occurs.
  - name: Contact Methods
    description: 'This object represents one of the following communication channels(Email, SMS, Phone Call, Slack, Microsoft Team, Google Chat). A user can add multiple contacts methods.'
  - name: Teams
    description: 'This object represents a team of the account. It lets you create different independent operational units in the account. You can check out the team docs here https://docs.zenduty.com/docs/teams.'
  - name: Team Members
    description: 'This object represents the users of a team. Each team member has a role which can be a manager or a user. You can checkout the team member docs here https://docs.zenduty.com/docs/users'
  - name: Team Permissions
    description: This object represents the permissions of a team. It lets you access the particular team elements that the team has given permissions to use.
  - name: Schedules
    description: 'This object represents the schedule of a team. You can checkout the schedule docs here https://docs.zenduty.com/docs/schedules'
  - name: Escalation Policies
    description: 'This object represents the escalation policy of a team. You can checkout the escalation policy docs here https://docs.zenduty.com/docs/escalationpolicies'
  - name: Services
    description: 'This object represents the services associated with a team. You can checkout the services docs here https://docs.zenduty.com/docs/services'
  - name: Integrations
    description: 'This object represents the integrations associated with a service. You can checkout the integration docs here https://docs.zenduty.com/docs/integrations'
  - name: Integration Alerts
    description: This object represents the integration alerts of an integration
  - name: Incidents
    description: 'This object represents the incidents of the account. You can checkout the incident docs here https://docs.zenduty.com/docs/incidents'
  - name: Incident Roles
    description: 'This object represents the incident roles of an incident. You can checkout the incident role docs here https://docs.zenduty.com/docs/incidentroles'
  - name: Incident Notes
    description: This object represents the incident notes of an incident.
  - name: Incident Tags
    description: This object represents the incident tags of an incident.
  - name: Events
    description: This object represents the events of an integration.
  - name: Incident Alerts
    description: This object represents the incident alerts of an incident.
  - name: Tags
    description: 'This object represents the tags of an incident. You can checkout the tag docs here https://docs.zenduty.com/docs/incidenttags'
  - name: Task Templates
    description: 'This object represents the task templates of the team. You can checkout the task template docs here https://docs.zenduty.com/docs/tasktemplates'
  - name: Priorities
    description: 'This object represents the priority of an incident. You can checkout the priority docs here https://docs.zenduty.com/docs/incidentpriority'
  - name: SLA
    description: 'This object represents the SLA of an incident. You can checkout the SLA docs here https://docs.zenduty.com/docs/incidentsla'
  - name: Team Maintenance Mode
    description: 'This object represents the maintenance mode of a team. You can checkout the team maintenance mode docs here https://docs.zenduty.com/docs/maintenancewindows'
  - name: Postmortem
    description: 'This object represents the postmortem of an incident. You can checkout the postmortem docs here https://docs.zenduty.com/docs/incidentpostmortem'
  - name: OnCall
    description: This object represents the user who is oncall.
  - name: Global Router
    description: 'This object represents the Global Router of the Account. You can checkout the global alert routing docs here https://docs.zenduty.com/docs/globalalertrouting'
  - 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'
  - name: Alert Rules
    description: 'Alert Rules in Zenduty are advanced conditions for incoming alerts. They dictate how Zenduty handles alerts and their incidents upon receipt, altering behavior and routing based on predefined rules and actions set by the user within Zenduty Integrations.Visit this link to view the documentation for the alert rules https://www.zenduty.com/docs/alertrules/'
servers:
  - url: 'https://www.zenduty.com'
security:
  - bearerAuth: []
paths:
  /api/account/api_invite/:
    post:
      tags:
        - Account Member
      summary: Invite User
      description: Returns an Account Member object.
      requestBody:
        description: Request body parameters to create the Account Member object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InviteUserPayload'
            example:
              team: db61f7ed-ba78-4536-9b2d-256b135a731d
              user_detail:
                first_name: Michael
                last_name: Scott
                email: michaelscott@zenduty.com
                role: 3
          application/xml:
            schema:
              $ref: '#/components/schemas/InviteUserPayload'
            example:
              team: db61f7ed-ba78-4536-9b2d-256b135a731d
              user_detail:
                first_name: Michael
                last_name: Scott
                email: michaelscott@zenduty.com
                role: 3
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: e6931b6d-55d7-45e4-9f30-4dbf72bbcf06
                team: db61f7ed-ba78-4536-9b2d-256b135a731d
                user:
                  username: 39f4dedd-2754-4ee1-9c0c-1
                  first_name: Michael
                  last_name: Scott
                  email: michaelscott@zenduty.com
                joining_date: '2022-09-20T14:29:05.997454Z'
                role: 2
            application/xml:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: e6931b6d-55d7-45e4-9f30-4dbf72bbcf06
                team: db61f7ed-ba78-4536-9b2d-256b135a731d
                user:
                  username: 39f4dedd-2754-4ee1-9c0c-1
                  first_name: Michael
                  last_name: Scott
                  email: michaelscott@zenduty.com
                joining_date: '2022-09-20T14:29:05.997454Z'
                role: 2
        '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/account/members/:
    get:
      tags:
        - Account Member
      summary: List all Account Member objects
      description: 'Returns a list of Account Member objects. The Account Member objects are sorted by joining_date, with the most recent Account Member object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountMember'
              example:
                - unique_id: 96f437aa-ae86-46cc-a01a-b2ede620d25a
                  time_zone: UTC
                  user:
                    username: 216bba3d-7268-4a8e-89e9-6
                    first_name: Anshul
                    last_name: Rajput
                    email: anshulrajput229@gmail.com
                  joining_date: '2022-07-08T10:28:36.804578Z'
                  role: 1
                  is_verified: false
                - unique_id: 49868e5e-aa68-471b-82e2-10b6238f42f6
                  time_zone: UTC
                  user:
                    username: 507dfda0-a1fd-40e5-943a-e
                    first_name: Mary
                    last_name: Jane
                    email: maryjane@sharklasers.com
                  joining_date: '2022-07-08T10:31:56.830785Z'
                  role: 3
                  is_verified: false
                - unique_id: ab188a19-7f5c-4f6f-b7cd-d1bfa0725dcd
                  time_zone: UTC
                  user:
                    username: 85b563c8-18d0-4668-9462-9
                    first_name: Vishwa
                    last_name: Krishnakumar
                    email: vishwa@yellowant.com
                  joining_date: '2022-07-08T10:32:42.191552Z'
                  role: 2
                  is_verified: false
            application/xml:
              schema:
                $ref: '#/components/schemas/AccountMember'
              example:
                - unique_id: 96f437aa-ae86-46cc-a01a-b2ede620d25a
                  time_zone: UTC
                  user:
                    username: 216bba3d-7268-4a8e-89e9-6
                    first_name: Anshul
                    last_name: Rajput
                    email: anshulrajput229@gmail.com
                  joining_date: '2022-07-08T10:28:36.804578Z'
                  role: 1
                  is_verified: false
                - unique_id: 49868e5e-aa68-471b-82e2-10b6238f42f6
                  time_zone: UTC
                  user:
                    username: 507dfda0-a1fd-40e5-943a-e
                    first_name: Mary
                    last_name: Jane
                    email: maryjane@sharklasers.com
                  joining_date: '2022-07-08T10:31:56.830785Z'
                  role: 3
                  is_verified: false
                - unique_id: ab188a19-7f5c-4f6f-b7cd-d1bfa0725dcd
                  time_zone: UTC
                  user:
                    username: 85b563c8-18d0-4668-9462-9
                    first_name: Vishwa
                    last_name: Krishnakumar
                    email: vishwa@yellowant.com
                  joining_date: '2022-07-08T10:32:42.191552Z'
                  role: 2
                  is_verified: false
        '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/account/members/{username}/':
    parameters:
      - name: username
        in: path
        schema:
          type: string
          description: A system-generated string that represents the User object's username
        required: true
    get:
      tags:
        - Account Member
      summary: Retrieve the Account Member object
      description: Retrieve the specified Account Member object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountMember'
              example:
                unique_id: ab188a19-7f5c-4f6f-b7cd-d1bfa0725dcd
                time_zone: UTC
                user:
                  username: 85b563c8-18d0-4668-9462-9
                  first_name: Vishwa
                  last_name: Krishnakumar
                  email: vishwa@yellowant.com
                joining_date: '2022-07-08T10:32:42.191552Z'
                role: 2
                is_verified: false
            application/xml:
              schema:
                $ref: '#/components/schemas/AccountMember'
              example:
                unique_id: ab188a19-7f5c-4f6f-b7cd-d1bfa0725dcd
                time_zone: UTC
                user:
                  username: 85b563c8-18d0-4668-9462-9
                  first_name: Vishwa
                  last_name: Krishnakumar
                  email: vishwa@yellowant.com
                joining_date: '2022-07-08T10:32:42.191552Z'
                role: 2
                is_verified: false
        '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:
        - Account Member
      summary: Update the Account Member object
      description: Updates the specified Account Member 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 Account Member object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountMemberPayload'
            example:
              user:
                username: 507dfda0-a1fd-40e5-943a-e
                first_name: Mary
                last_name: Jane
              role: 2
          application/xml:
            schema:
              $ref: '#/components/schemas/AccountMemberPayload'
            example:
              user:
                username: 507dfda0-a1fd-40e5-943a-e
                first_name: Mary
                last_name: Jane
              role: 2
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountMember'
              example:
                unique_id: 49868e5e-aa68-471b-82e2-10b6238f42f6
                time_zone: UTC
                user:
                  username: 507dfda0-a1fd-40e5-943a-e
                  first_name: Mary
                  last_name: Jane
                  email: maryjane@sharklasers.com
                joining_date: '2022-07-08T10:31:56.830785Z'
                role: 2
                is_verified: false
            application/xml:
              schema:
                $ref: '#/components/schemas/AccountMember'
              example:
                unique_id: 49868e5e-aa68-471b-82e2-10b6238f42f6
                time_zone: UTC
                user:
                  username: 507dfda0-a1fd-40e5-943a-e
                  first_name: Mary
                  last_name: Jane
                  email: maryjane@sharklasers.com
                joining_date: '2022-07-08T10:31:56.830785Z'
                role: 2
                is_verified: false
        '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/account/deleteuser/:
    post:
      tags:
        - Account Member
      summary: Delete User
      description: Delete the specified Account Member object
      requestBody:
        description: Request body parameters to create the Account Member object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteUserPayload'
            example:
              username: 6b2af4db-8b31-4bfb-9742-4
          application/xml:
            schema:
              $ref: '#/components/schemas/DeleteUserPayload'
            example:
              username: 6b2af4db-8b31-4bfb-9742-4
      responses:
        '204':
          description: Success
        '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/account/customroles/:
    post:
      tags:
        - Account Custom Role
      summary: Create the Account Custom Role object
      description: Create the Account Custom Role object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Account Custom Role object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountCustomRolePayload'
            example:
              name: Role 1
              description: Role 1 Description
              permissions:
                - sla_read
          application/xml:
            schema:
              $ref: '#/components/schemas/AccountCustomRolePayload'
            example:
              name: Role 1
              description: Role 1 Description
              permissions:
                - sla_read
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountCustomRolePostAndPutResponse'
              example:
                unique_id: 97208d3e-e45d-409a-b951-4eae928a59b9
                name: Role 1
                description: Role 1 Description
            application/xml:
              schema:
                $ref: '#/components/schemas/AccountCustomRolePostAndPutResponse'
              example:
                unique_id: 97208d3e-e45d-409a-b951-4eae928a59b9
                name: Role 1
                description: Role 1 Description
        '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:
        - Account Custom Role
      summary: List all Account Custom Role objects
      description: Returns a list of Account Custom Role objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountCustomRole'
              example:
                - unique_id: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                  name: Role 1 Updated
                  description: Role 1 Description
                  permissions:
                    - member_read
                    - schedule_read
                    - team_read
                - unique_id: 97208d3e-e45d-409a-b951-4eae928a59b9
                  name: Role 2
                  description: Role 1 Description
                  permissions:
                    - member_read
                    - sla_read
                    - team_read
                - unique_id: 0d087386-cebf-47ee-8dd3-c52f05c43128
                  name: w4e5rty
                  description: ew4rtyg
                  permissions:
                    - escalation_policy_read
                    - incident_read
                    - incident_role_read
                    - member_read
                    - priority_read
                    - schedule_read
                    - service_read
                    - sla_read
                    - tag_read
                    - task_template_read
                    - team_read
            application/xml:
              schema:
                $ref: '#/components/schemas/AccountCustomRole'
              example:
                - unique_id: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                  name: Role 1 Updated
                  description: Role 1 Description
                  permissions:
                    - member_read
                    - schedule_read
                    - team_read
                - unique_id: 97208d3e-e45d-409a-b951-4eae928a59b9
                  name: Role 2
                  description: Role 1 Description
                  permissions:
                    - member_read
                    - sla_read
                    - team_read
                - unique_id: 0d087386-cebf-47ee-8dd3-c52f05c43128
                  name: w4e5rty
                  description: ew4rtyg
                  permissions:
                    - escalation_policy_read
                    - incident_read
                    - incident_role_read
                    - member_read
                    - priority_read
                    - schedule_read
                    - service_read
                    - sla_read
                    - tag_read
                    - task_template_read
                    - team_read
        '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/account/customroles/{custom_role_id}/':
    parameters:
      - name: custom_role_id
        in: path
        description: unique_id of the Account Custom Role object
        schema:
          type: string
        required: true
    get:
      tags:
        - Account Custom Role
      summary: Retrieve the Account Custom Role object
      description: Retrieve the specified Account Custom Role object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountCustomRole'
              example:
                unique_id: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                name: Role 1 Updated
                description: Role 1 Description
                permissions:
                  - member_read
                  - schedule_read
                  - team_read
            application/xml:
              schema:
                $ref: '#/components/schemas/AccountCustomRole'
              example:
                unique_id: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                name: Role 1 Updated
                description: Role 1 Description
                permissions:
                  - member_read
                  - schedule_read
                  - team_read
        '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:
        - Account Custom Role
      summary: Update the Account Custom Role object
      description: Updates the specified Account Custom Role 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 Account Custom Role object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountCustomRolePayload'
            example:
              name: Role Updated
              permissions:
                - sla_read
          application/xml:
            schema:
              $ref: '#/components/schemas/AccountCustomRolePayload'
            example:
              name: Role Updated
              permissions:
                - sla_read
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountCustomRolePostAndPutResponse'
              example:
                unique_id: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                name: Role Updated
                description: Role 1 Description
            application/xml:
              schema:
                $ref: '#/components/schemas/AccountCustomRolePostAndPutResponse'
              example:
                unique_id: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                name: Role Updated
                description: Role 1 Description
        '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.
    delete:
      tags:
        - Account Custom Role
      summary: Delete the Account Custom Role object
      description: Delete the specified Account Custom Role object permanently.
      responses:
        '204':
          description: Success
        '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/account/users/{username}/customroles/':
    parameters:
      - name: username
        in: path
        description: username of the User object
        schema:
          type: string
        required: true
    post:
      tags:
        - User Custom Role
      summary: Create the User Custom Role object
      description: Create the User Custom Role object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the User Custom Role object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserCustomRolePayload'
            example:
              custom_role: ddf61a4d-6489-4665-bee6-7e21205f9d6f
          application/xml:
            schema:
              $ref: '#/components/schemas/UserCustomRolePayload'
            example:
              custom_role: ddf61a4d-6489-4665-bee6-7e21205f9d6f
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserCustomRole'
              example:
                user: 6278fd1d-7e7c-486a-80e3-5
                custom_role: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                custom_role_details:
                  name: Role Updated
            application/xml:
              schema:
                $ref: '#/components/schemas/UserCustomRole'
              example:
                user: 6278fd1d-7e7c-486a-80e3-5
                custom_role: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                custom_role_details:
                  name: Role Updated
        '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:
        - User Custom Role
      summary: List all User Custom Role objects
      description: Returns a list of User Custom Role objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserCustomRole'
              example:
                user: 6278fd1d-7e7c-486a-80e3-5
                custom_role: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                custom_role_details:
                  name: Role Updated
            application/xml:
              schema:
                $ref: '#/components/schemas/UserCustomRole'
              example:
                user: 6278fd1d-7e7c-486a-80e3-5
                custom_role: ddf61a4d-6489-4665-bee6-7e21205f9d6f
                custom_role_details:
                  name: Role Updated
        '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/account/users/{username}/notification_rules/':
    parameters:
      - name: username
        in: path
        description: username of the User object
        schema:
          type: string
        required: true
    post:
      tags:
        - Notification Rules
      summary: Create the User Notification Rules object
      description: Create the User Notification Rules object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the User Notification Rule object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserNotificationRulePayload'
            example:
              start_delay: 0
              contact: caabda03-5e15-4cf1-b293-fab41b688ac7
              urgency: 1
          application/xml:
            schema:
              $ref: '#/components/schemas/UserNotificationRulePayload'
            example:
              start_delay: 0
              contact: caabda03-5e15-4cf1-b293-fab41b688ac7
              urgency: 1
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserNotificationRule'
              example:
                creation_date: '2023-03-01T15:28:35.582391Z'
                start_delay: 0
                type: ''
                unique_id: 3433edb5-f589-4227-baa5-a6646d93e76b
                contact: caabda03-5e15-4cf1-b293-fab41b688ac7
                urgency: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/UserNotificationRule'
              example:
                creation_date: '2023-03-01T15:28:35.582391Z'
                start_delay: 0
                type: ''
                unique_id: 3433edb5-f589-4227-baa5-a6646d93e76b
                contact: caabda03-5e15-4cf1-b293-fab41b688ac7
                urgency: 1
        '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:
        - Notification Rules
      summary: List all Users' Notification Rule objects
      description: Returns a list of User Notification Rule objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserNotificationRule'
              example:
                - creation_date: '2023-03-01T15:20:45.565595Z'
                  start_delay: 0
                  type: ''
                  unique_id: 1d757ec0-39d3-4cd0-9536-7e0bb3e2665c
                  contact: 374d3e48-b4bd-438d-8e18-d69ddeadd183
                  urgency: 1
                - creation_date: '2023-03-01T15:20:45.922128Z'
                  start_delay: 0
                  type: ''
                  unique_id: 68ed337e-8481-4cca-81da-b35342660377
                  contact: caabda03-5e15-4cf1-b293-fab41b688ac7
                  urgency: 1
                - creation_date: '2023-03-01T15:28:35.582391Z'
                  start_delay: 5
                  type: ''
                  unique_id: 3433edb5-f589-4227-baa5-a6646d93e76b
                  contact: caabda03-5e15-4cf1-b293-fab41b688ac7
                  urgency: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/UserNotificationRule'
              example:
                - creation_date: '2023-03-01T15:20:45.565595Z'
                  start_delay: 0
                  type: ''
                  unique_id: 1d757ec0-39d3-4cd0-9536-7e0bb3e2665c
                  contact: 374d3e48-b4bd-438d-8e18-d69ddeadd183
                  urgency: 1
                - creation_date: '2023-03-01T15:20:45.922128Z'
                  start_delay: 0
                  type: ''
                  unique_id: 68ed337e-8481-4cca-81da-b35342660377
                  contact: caabda03-5e15-4cf1-b293-fab41b688ac7
                  urgency: 1
                - creation_date: '2023-03-01T15:28:35.582391Z'
                  start_delay: 5
                  type: ''
                  unique_id: 3433edb5-f589-4227-baa5-a6646d93e76b
                  contact: caabda03-5e15-4cf1-b293-fab41b688ac7
                  urgency: 1
        '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/account/users/{username}/notification_rules/{notification_rule_id}/':
    parameters:
      - name: username
        in: path
        description: username of the User object
        schema:
          type: string
        required: true
      - name: notification_rule_id
        in: path
        description: unique_id of the User Notification Rule object
        schema:
          type: string
        required: true
    get:
      tags:
        - Notification Rules
      summary: Retrieve the User Notification Rule object
      description: Retrieve the specified User's Notification Rule object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserNotificationRule'
              example:
                creation_date: '2023-03-01T15:20:45.565595Z'
                start_delay: 5
                type: ''
                unique_id: 1d757ec0-39d3-4cd0-9536-7e0bb3e2665c
                contact: 374d3e48-b4bd-438d-8e18-d69ddeadd183
                urgency: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/UserNotificationRule'
              example:
                creation_date: '2023-03-01T15:20:45.565595Z'
                start_delay: 5
                type: ''
                unique_id: 1d757ec0-39d3-4cd0-9536-7e0bb3e2665c
                contact: 374d3e48-b4bd-438d-8e18-d69ddeadd183
                urgency: 1
        '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.
    delete:
      tags:
        - Notification Rules
      summary: Delete the User Notification Rules object
      description: Delete the specified User Notification Rules object permanently.
      responses:
        '204':
          description: Success
        '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/account/users/{username}/forwarding_rules/':
    parameters:
      - name: username
        in: path
        description: username of the User object
        schema:
          type: string
        required: true
    post:
      tags:
        - Forwarding Rules
      summary: Create the User Forwarding Rules object
      description: Create the User's Forwarding Rules object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the User Forwarding Rules object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserForwardingRulePayload'
            example:
              from_date: '2023-03-01T16:37:58.654Z'
              to_date: '2023-03-01T16:37:58.654Z'
              time_zone: UTC
              to_user: 7e26fed1-f11c-4e78-afc6-a
          application/xml:
            schema:
              $ref: '#/components/schemas/UserForwardingRulePayload'
            example:
              from_date: '2023-03-01T16:37:58.654Z'
              to_date: '2023-03-01T16:37:58.654Z'
              time_zone: UTC
              to_user: 7e26fed1-f11c-4e78-afc6-a
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserForwardingRule'
              example:
                creation_date: '2023-03-01T16:43:00.031310Z'
                unique_id: 8bd02ac2-07fe-4d32-a37f-e1def9673746
                time_zone: UTC
                from_date: '2023-03-01T16:37:58.654000Z'
                to_date: '2023-03-01T16:37:58.654000Z'
                to_user: 7e26fed1-f11c-4e78-afc6-a
                created_by: 7e26fed1-f11c-4e78-afc6-a
                user: 4f9f41eb-4252-462e-9e33-6
            application/xml:
              schema:
                $ref: '#/components/schemas/UserForwardingRule'
              example:
                creation_date: '2023-03-01T16:43:00.031310Z'
                unique_id: 8bd02ac2-07fe-4d32-a37f-e1def9673746
                time_zone: UTC
                from_date: '2023-03-01T16:37:58.654000Z'
                to_date: '2023-03-01T16:37:58.654000Z'
                to_user: 7e26fed1-f11c-4e78-afc6-a
                created_by: 7e26fed1-f11c-4e78-afc6-a
                user: 4f9f41eb-4252-462e-9e33-6
        '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:
        - Forwarding Rules
      summary: List all User Forwarding Rule objects
      description: Returns a list of User Forwarding Rule objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserForwardingRule'
              example:
                - creation_date: '2023-03-01T16:38:22.540374Z'
                  unique_id: a6011d7c-3a44-4cab-8580-a410881f4ff9
                  time_zone: UTC
                  from_date: '2023-03-01T16:37:58.654000Z'
                  to_date: '2023-03-01T16:37:58.654000Z'
                  to_user: 7e26fed1-f11c-4e78-afc6-a
                  created_by: 7e26fed1-f11c-4e78-afc6-a
                  user: 4f9f41eb-4252-462e-9e33-6
                - creation_date: '2023-03-01T16:44:31.446633Z'
                  unique_id: e2c523b9-af2b-4e66-a3fd-338bd7ffc641
                  time_zone: UTC
                  from_date: '2023-03-01T16:44:22.757000Z'
                  to_date: '2023-03-01T16:44:22.757000Z'
                  to_user: 25692874-e54d-4101-bbfc-7
                  created_by: 7e26fed1-f11c-4e78-afc6-a
                  user: 4f9f41eb-4252-462e-9e33-6
            application/xml:
              schema:
                $ref: '#/components/schemas/UserForwardingRule'
              example:
                - creation_date: '2023-03-01T16:38:22.540374Z'
                  unique_id: a6011d7c-3a44-4cab-8580-a410881f4ff9
                  time_zone: UTC
                  from_date: '2023-03-01T16:37:58.654000Z'
                  to_date: '2023-03-01T16:37:58.654000Z'
                  to_user: 7e26fed1-f11c-4e78-afc6-a
                  created_by: 7e26fed1-f11c-4e78-afc6-a
                  user: 4f9f41eb-4252-462e-9e33-6
                - creation_date: '2023-03-01T16:44:31.446633Z'
                  unique_id: e2c523b9-af2b-4e66-a3fd-338bd7ffc641
                  time_zone: UTC
                  from_date: '2023-03-01T16:44:22.757000Z'
                  to_date: '2023-03-01T16:44:22.757000Z'
                  to_user: 25692874-e54d-4101-bbfc-7
                  created_by: 7e26fed1-f11c-4e78-afc6-a
                  user: 4f9f41eb-4252-462e-9e33-6
        '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/account/users/{username}/forwarding_rules/{forwarding_rule_id}/':
    parameters:
      - name: username
        in: path
        description: username of the User object
        schema:
          type: string
        required: true
      - name: forwarding_rule_id
        in: path
        description: unique_id of the User Forwarding Rules object
        schema:
          type: string
        required: true
    get:
      tags:
        - Forwarding Rules
      summary: Retrieve the User Forwarding Rules object
      description: Retrieve the specified User's Forwarding Rules object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserForwardingRule'
              example:
                creation_date: '2023-03-01T16:38:22.540374Z'
                unique_id: a6011d7c-3a44-4cab-8580-a410881f4ff9
                time_zone: UTC
                from_date: '2023-03-01T16:37:58.654000Z'
                to_date: '2023-03-01T16:37:58.654000Z'
                to_user: 7e26fed1-f11c-4e78-afc6-a
                created_by: 7e26fed1-f11c-4e78-afc6-a
                user: 4f9f41eb-4252-462e-9e33-6
            application/xml:
              schema:
                $ref: '#/components/schemas/UserForwardingRule'
              example:
                creation_date: '2023-03-01T16:38:22.540374Z'
                unique_id: a6011d7c-3a44-4cab-8580-a410881f4ff9
                time_zone: UTC
                from_date: '2023-03-01T16:37:58.654000Z'
                to_date: '2023-03-01T16:37:58.654000Z'
                to_user: 7e26fed1-f11c-4e78-afc6-a
                created_by: 7e26fed1-f11c-4e78-afc6-a
                user: 4f9f41eb-4252-462e-9e33-6
        '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.
    delete:
      tags:
        - Forwarding Rules
      summary: Delete the User Forwarding Rule object
      description: Delete the specified User's Forwarding Rules object permanently.
      responses:
        '204':
          description: Success
        '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/account/users/{username}/contacts/':
    parameters:
      - name: username
        in: path
        description: username of the User object
        schema:
          type: string
        required: true
    post:
      tags:
        - Contact Methods
      summary: Create the User Contact Methods object
      description: Create the User Contact Methods object by setting the values of all the required parameters passed in the request body. A user can only create email Contact Methods through API.
      requestBody:
        description: Request body parameters to create the User Contact Methods object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserContactMethodPayload'
            example:
              name: Secondary Email
              value: anshulrajput229@gmail.com
              contact_type: 1
          application/xml:
            schema:
              $ref: '#/components/schemas/UserContactMethodPayload'
            example:
              name: Secondary Email
              value: anshulrajput229@gmail.com
              contact_type: 1
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethod'
              example:
                name: Secondary Email
                creation_date: '2023-03-02'
                contact_type: 1
                value: anshulrajput229@gmail.com
                unique_id: 8a862f18-9332-4d08-90ad-06c070803c05
            application/xml:
              schema:
                $ref: '#/components/schemas/UserContactMethod'
              example:
                name: Secondary Email
                creation_date: '2023-03-02'
                contact_type: 1
                value: anshulrajput229@gmail.com
                unique_id: 8a862f18-9332-4d08-90ad-06c070803c05
        '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:
        - Contact Methods
      summary: List all User Contact Method objects
      description: Returns a list of User Contact Method objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethod'
              example:
                - name: Primary Email
                  creation_date: '2023-02-14'
                  contact_type: 1
                  value: user@three.com
                  unique_id: 374d3e48-b4bd-438d-8e18-d69ddeadd183
                - name: Primary
                  creation_date: '2023-03-01'
                  contact_type: 2
                  value: +91 86993 62839
                  unique_id: caabda03-5e15-4cf1-b293-fab41b688ac7
                - name: Secondary Email
                  creation_date: '2023-03-02'
                  contact_type: 1
                  value: anshulrajput229@gmail.com
                  unique_id: 8a862f18-9332-4d08-90ad-06c070803c05
            application/xml:
              schema:
                $ref: '#/components/schemas/UserContactMethod'
              example:
                - name: Primary Email
                  creation_date: '2023-02-14'
                  contact_type: 1
                  value: user@three.com
                  unique_id: 374d3e48-b4bd-438d-8e18-d69ddeadd183
                - name: Primary
                  creation_date: '2023-03-01'
                  contact_type: 2
                  value: +91 86993 62839
                  unique_id: caabda03-5e15-4cf1-b293-fab41b688ac7
                - name: Secondary Email
                  creation_date: '2023-03-02'
                  contact_type: 1
                  value: anshulrajput229@gmail.com
                  unique_id: 8a862f18-9332-4d08-90ad-06c070803c05
        '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/account/users/{username}/contacts/{contact_id}/':
    parameters:
      - name: username
        in: path
        description: username of the User object
        schema:
          type: string
        required: true
      - name: contact_id
        in: path
        description: unique_id of the User Contact Methods object
        schema:
          type: string
        required: true
    get:
      tags:
        - Contact Methods
      summary: Retrieve the User Contact Methods object
      description: Retrieve the specified User's Contact Methods object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethod'
              example:
                name: Primary Email
                creation_date: '2023-02-14'
                contact_type: 1
                value: user@three.com
                unique_id: 374d3e48-b4bd-438d-8e18-d69ddeadd183
            application/xml:
              schema:
                $ref: '#/components/schemas/UserContactMethod'
              example:
                name: Primary Email
                creation_date: '2023-02-14'
                contact_type: 1
                value: user@three.com
                unique_id: 374d3e48-b4bd-438d-8e18-d69ddeadd183
        '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.
    delete:
      tags:
        - Contact Methods
      summary: Delete the User Contact Methods object
      description: Delete the specified User's Contact Methods object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/:
    post:
      tags:
        - Teams
      summary: Create the Team object
      description: Create the Team object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Team object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamPayload'
            example:
              name: Production Team
          application/xml:
            schema:
              $ref: '#/components/schemas/TeamPayload'
            example:
              name: Production Team
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                name: Production Team
                account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                creation_date: '2022-07-08'
                members:
                  - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    user:
                      username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      last_name: Rajput
                      email: anshulrajput229@gmail.com
                    joining_date: '2022-07-08T10:41:36.600148Z'
                    role: 1
                owner: 216bba3d-7268-4a8e-89e9-6
                roles:
                  - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    title: Incident Commander
                    description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                    creation_date: '2022-07-08T10:41:36.623257Z'
                    rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                name: Production Team
                account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                creation_date: '2022-07-08'
                members:
                  - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    user:
                      username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      last_name: Rajput
                      email: anshulrajput229@gmail.com
                    joining_date: '2022-07-08T10:41:36.600148Z'
                    role: 1
                owner: 216bba3d-7268-4a8e-89e9-6
                roles:
                  - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    title: Incident Commander
                    description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                    creation_date: '2022-07-08T10:41:36.623257Z'
                    rank: 1
        '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:
        - Teams
      summary: List all Team objects
      description: 'Returns a list of Team objects. The Team objects are sorted by creation_date, with the most recent Team object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                - unique_id: 1f1b4d79-ed32-44fc-926d-f794b975200c
                  name: Operation Team
                  account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                  creation_date: '2022-07-08'
                  members:
                    - unique_id: 90a97f10-d290-4bd0-9f83-525f130c6399
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      user:
                        username: 216bba3d-7268-4a8e-89e9-6
                        first_name: Anshul
                        last_name: Rajput
                        email: anshulrajput229@gmail.com
                      joining_date: '2022-07-08T10:29:36.408864Z'
                      role: 1
                    - unique_id: 4af52265-b69e-4cd0-948a-fba33933588d
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      user:
                        username: 507dfda0-a1fd-40e5-943a-e
                        first_name: Mary
                        last_name: Jane
                        email: maryjane@sharklasers.com
                      joining_date: '2022-07-08T10:31:56.849950Z'
                      role: 2
                    - unique_id: 76e76d20-2c82-49be-b987-244c8c6af57b
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      user:
                        username: 85b563c8-18d0-4668-9462-9
                        first_name: Vishwa
                        last_name: Krishnakumar
                        email: vishwa@yellowant.com
                      joining_date: '2022-07-08T10:32:42.213487Z'
                      role: 2
                  owner: 216bba3d-7268-4a8e-89e9-6
                  roles:
                    - unique_id: ce2e4fec-7fb9-440c-b400-9a33639d8ba3
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      title: Incident Commander
                      description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                      creation_date: '2022-07-08T10:29:36.431801Z'
                      rank: 1
                - unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: Production Team
                  account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                  creation_date: '2022-07-08'
                  members:
                    - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                      team: 61010821-08aa-4098-94f8-f88f1990b54a
                      user:
                        username: 216bba3d-7268-4a8e-89e9-6
                        first_name: Anshul
                        last_name: Rajput
                        email: anshulrajput229@gmail.com
                      joining_date: '2022-07-08T10:41:36.600148Z'
                      role: 1
                  owner: 216bba3d-7268-4a8e-89e9-6
                  roles:
                    - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                      team: 61010821-08aa-4098-94f8-f88f1990b54a
                      title: Incident Commander
                      description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                      creation_date: '2022-07-08T10:41:36.623257Z'
                      rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                - unique_id: 1f1b4d79-ed32-44fc-926d-f794b975200c
                  name: Operation Team
                  account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                  creation_date: '2022-07-08'
                  members:
                    - unique_id: 90a97f10-d290-4bd0-9f83-525f130c6399
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      user:
                        username: 216bba3d-7268-4a8e-89e9-6
                        first_name: Anshul
                        last_name: Rajput
                        email: anshulrajput229@gmail.com
                      joining_date: '2022-07-08T10:29:36.408864Z'
                      role: 1
                    - unique_id: 4af52265-b69e-4cd0-948a-fba33933588d
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      user:
                        username: 507dfda0-a1fd-40e5-943a-e
                        first_name: Mary
                        last_name: Jane
                        email: maryjane@sharklasers.com
                      joining_date: '2022-07-08T10:31:56.849950Z'
                      role: 2
                    - unique_id: 76e76d20-2c82-49be-b987-244c8c6af57b
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      user:
                        username: 85b563c8-18d0-4668-9462-9
                        first_name: Vishwa
                        last_name: Krishnakumar
                        email: vishwa@yellowant.com
                      joining_date: '2022-07-08T10:32:42.213487Z'
                      role: 2
                  owner: 216bba3d-7268-4a8e-89e9-6
                  roles:
                    - unique_id: ce2e4fec-7fb9-440c-b400-9a33639d8ba3
                      team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                      title: Incident Commander
                      description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                      creation_date: '2022-07-08T10:29:36.431801Z'
                      rank: 1
                - unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: Production Team
                  account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                  creation_date: '2022-07-08'
                  members:
                    - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                      team: 61010821-08aa-4098-94f8-f88f1990b54a
                      user:
                        username: 216bba3d-7268-4a8e-89e9-6
                        first_name: Anshul
                        last_name: Rajput
                        email: anshulrajput229@gmail.com
                      joining_date: '2022-07-08T10:41:36.600148Z'
                      role: 1
                  owner: 216bba3d-7268-4a8e-89e9-6
                  roles:
                    - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                      team: 61010821-08aa-4098-94f8-f88f1990b54a
                      title: Incident Commander
                      description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                      creation_date: '2022-07-08T10:41:36.623257Z'
                      rank: 1
        '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/account/teams/{team_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    get:
      tags:
        - Teams
      summary: Retrieve the Team object
      description: Retrieve the specified Team object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                unique_id: 1f1b4d79-ed32-44fc-926d-f794b975200c
                name: Operation Team
                account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                creation_date: '2022-07-08'
                members:
                  - unique_id: 90a97f10-d290-4bd0-9f83-525f130c6399
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    user:
                      username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      last_name: Rajput
                      email: anshulrajput229@gmail.com
                    joining_date: '2022-07-08T10:29:36.408864Z'
                    role: 1
                  - unique_id: 4af52265-b69e-4cd0-948a-fba33933588d
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    user:
                      username: 507dfda0-a1fd-40e5-943a-e
                      first_name: Mary
                      last_name: Jane
                      email: maryjane@sharklasers.com
                    joining_date: '2022-07-08T10:31:56.849950Z'
                    role: 2
                  - unique_id: 76e76d20-2c82-49be-b987-244c8c6af57b
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    user:
                      username: 85b563c8-18d0-4668-9462-9
                      first_name: Vishwa
                      last_name: Krishnakumar
                      email: vishwa@yellowant.com
                    joining_date: '2022-07-08T10:32:42.213487Z'
                    role: 2
                owner: 216bba3d-7268-4a8e-89e9-6
                roles:
                  - unique_id: ce2e4fec-7fb9-440c-b400-9a33639d8ba3
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    title: Incident Commander
                    description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                    creation_date: '2022-07-08T10:29:36.431801Z'
                    rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                unique_id: 1f1b4d79-ed32-44fc-926d-f794b975200c
                name: Operation Team
                account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                creation_date: '2022-07-08'
                members:
                  - unique_id: 90a97f10-d290-4bd0-9f83-525f130c6399
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    user:
                      username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      last_name: Rajput
                      email: anshulrajput229@gmail.com
                    joining_date: '2022-07-08T10:29:36.408864Z'
                    role: 1
                  - unique_id: 4af52265-b69e-4cd0-948a-fba33933588d
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    user:
                      username: 507dfda0-a1fd-40e5-943a-e
                      first_name: Mary
                      last_name: Jane
                      email: maryjane@sharklasers.com
                    joining_date: '2022-07-08T10:31:56.849950Z'
                    role: 2
                  - unique_id: 76e76d20-2c82-49be-b987-244c8c6af57b
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    user:
                      username: 85b563c8-18d0-4668-9462-9
                      first_name: Vishwa
                      last_name: Krishnakumar
                      email: vishwa@yellowant.com
                    joining_date: '2022-07-08T10:32:42.213487Z'
                    role: 2
                owner: 216bba3d-7268-4a8e-89e9-6
                roles:
                  - unique_id: ce2e4fec-7fb9-440c-b400-9a33639d8ba3
                    team: 1f1b4d79-ed32-44fc-926d-f794b975200c
                    title: Incident Commander
                    description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                    creation_date: '2022-07-08T10:29:36.431801Z'
                    rank: 1
        '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:
        - Teams
      summary: Update the Team object
      description: Updates the specified Team 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 Team object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamPayload'
            example:
              name: Modified Production Team
          application/xml:
            schema:
              $ref: '#/components/schemas/TeamPayload'
            example:
              name: Modified Production Team
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                name: Modified Production Team
                account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                creation_date: '2022-07-08'
                members:
                  - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    user:
                      username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      last_name: Rajput
                      email: anshulrajput229@gmail.com
                    joining_date: '2022-07-08T10:41:36.600148Z'
                    role: 1
                owner: 216bba3d-7268-4a8e-89e9-6
                roles:
                  - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    title: Incident Commander
                    description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                    creation_date: '2022-07-08T10:41:36.623257Z'
                    rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/Team'
              example:
                unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                name: Modified Production Team
                account: 0713dc12-40b0-46ff-b0f9-c6b126399277
                creation_date: '2022-07-08'
                members:
                  - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    user:
                      username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      last_name: Rajput
                      email: anshulrajput229@gmail.com
                    joining_date: '2022-07-08T10:41:36.600148Z'
                    role: 1
                owner: 216bba3d-7268-4a8e-89e9-6
                roles:
                  - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    title: Incident Commander
                    description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                    creation_date: '2022-07-08T10:41:36.623257Z'
                    rank: 1
        '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.
    delete:
      tags:
        - Teams
      summary: Delete the Team object
      description: Delete the specified Team object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/members/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Team Members
      summary: Create the Team Member object
      description: Create the Team Member object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Team Member object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamMemberPayload'
            example:
              user: 507dfda0-a1fd-40e5-943a-e
          application/xml:
            schema:
              $ref: '#/components/schemas/TeamMemberPayload'
            example:
              user: 507dfda0-a1fd-40e5-943a-e
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                user: 507dfda0-a1fd-40e5-943a-e
                joining_date: '2022-07-08T11:09:38.230395Z'
                role: 2
            application/xml:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                user: 507dfda0-a1fd-40e5-943a-e
                joining_date: '2022-07-08T11:09:38.230395Z'
                role: 2
        '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:
        - Team Members
      summary: List all Team Member objects
      description: 'Returns a list of Team Member objects. The Team Member objects are sorted by joining_date, with the most recent Team Member object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  user:
                    username: 216bba3d-7268-4a8e-89e9-6
                    first_name: Anshul
                    last_name: Rajput
                    email: anshulrajput229@gmail.com
                  joining_date: '2022-07-08T10:41:36.600148Z'
                  role: 1
                - unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  user:
                    username: 507dfda0-a1fd-40e5-943a-e
                    first_name: Mary
                    last_name: Jane
                    email: maryjane@sharklasers.com
                  joining_date: '2022-07-08T11:09:38.230395Z'
                  role: 2
            application/xml:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                - unique_id: d916157c-ff8b-43be-8e99-4b63699fdf72
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  user:
                    username: 216bba3d-7268-4a8e-89e9-6
                    first_name: Anshul
                    last_name: Rajput
                    email: anshulrajput229@gmail.com
                  joining_date: '2022-07-08T10:41:36.600148Z'
                  role: 1
                - unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  user:
                    username: 507dfda0-a1fd-40e5-943a-e
                    first_name: Mary
                    last_name: Jane
                    email: maryjane@sharklasers.com
                  joining_date: '2022-07-08T11:09:38.230395Z'
                  role: 2
        '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/account/teams/{team_id}/members/{member_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: member_id
        in: path
        description: unique_id of the Team Member object
        schema:
          type: string
        required: true
    get:
      tags:
        - Team Members
      summary: Retrieve the Team Member object
      description: Retrieve the specified Team Member object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                user:
                  username: 507dfda0-a1fd-40e5-943a-e
                  first_name: Mary
                  last_name: Jane
                  email: maryjane@sharklasers.com
                joining_date: '2022-07-08T11:09:38.230395Z'
                role: 2
            application/xml:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                user:
                  username: 507dfda0-a1fd-40e5-943a-e
                  first_name: Mary
                  last_name: Jane
                  email: maryjane@sharklasers.com
                joining_date: '2022-07-08T11:09:38.230395Z'
                role: 2
        '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:
        - Team Members
      summary: Update the Team Member object
      description: Updates the specified Team Member 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 Team Member object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamMemberPayload'
            example:
              user: 507dfda0-a1fd-40e5-943a-e
              role: 1
          application/xml:
            schema:
              $ref: '#/components/schemas/TeamMemberPayload'
            example:
              user: 507dfda0-a1fd-40e5-943a-e
              role: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                user: 507dfda0-a1fd-40e5-943a-e
                joining_date: '2022-07-08T11:09:38.230395Z'
                role: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/TeamMember'
              example:
                unique_id: 828e4a7b-bb12-4ffc-baa5-7681634d4f7f
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                user: 507dfda0-a1fd-40e5-943a-e
                joining_date: '2022-07-08T11:09:38.230395Z'
                role: 1
        '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.
    delete:
      tags:
        - Team Members
      summary: Delete the Team Member object
      description: Delete the specified Team Member object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/permissions/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    get:
      tags:
        - Team Permissions
      summary: Retrieve Team Permission object
      description: Returns a particular Team Permission object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamPermission'
              example:
                unique_id: 5f9a92c2-ddf2-4e71-862c-b4bbe959df24
                account_permissions:
                  - schedule_read
                  - member_read
                  - team_read
                  - sla_read
                  - incident_read
                  - incident_role_read
                  - escalation_policy_read
                  - tag_read
                  - service_read
                  - task_template_read
                  - priority_read
            application/xml:
              schema:
                $ref: '#/components/schemas/TeamPermission'
              example:
                unique_id: 5f9a92c2-ddf2-4e71-862c-b4bbe959df24
                account_permissions:
                  - schedule_read
                  - member_read
                  - team_read
                  - sla_read
                  - incident_read
                  - incident_role_read
                  - escalation_policy_read
                  - tag_read
                  - service_read
                  - task_template_read
                  - priority_read
        '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:
        - Team Permissions
      summary: Update the Team Permission object
      description: Update the Team Permission object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to update the Team Permission object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamPermissionPayload'
            example:
              account_permissions:
                - member_read
                - schedule_read
                - team_read
                - sla_read
                - incident_read
          application/xml:
            schema:
              $ref: '#/components/schemas/TeamPermissionPayload'
            example:
              account_permissions:
                - member_read
                - schedule_read
                - team_read
                - sla_read
                - incident_read
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamPermission'
              example:
                unique_id: 5f9a92c2-ddf2-4e71-862c-b4bbe959df24
                account_permissions:
                  - schedule_read
                  - member_read
                  - team_read
                  - sla_read
                  - incident_read
                  - incident_role_read
                  - escalation_policy_read
                  - tag_read
                  - service_read
                  - task_template_read
                  - priority_read
            application/xml:
              schema:
                $ref: '#/components/schemas/TeamPermission'
              example:
                unique_id: 5f9a92c2-ddf2-4e71-862c-b4bbe959df24
                account_permissions:
                  - schedule_read
                  - member_read
                  - team_read
                  - sla_read
                  - incident_read
                  - incident_role_read
                  - escalation_policy_read
                  - tag_read
                  - service_read
                  - task_template_read
                  - priority_read
        '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/account/teams/{}/schedule/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Schedules
      summary: Create the Schedule object
      description: Create the Schedule object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Schedule object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SchedulePayload'
            example:
              name: Daily Schedule
              summary: Daily on call schedule for modified production team
              time_zone: Asia/Kolkata
          application/xml:
            schema:
              $ref: '#/components/schemas/SchedulePayload'
            example:
              name: Daily Schedule
              summary: Daily on call schedule for modified production team
              time_zone: Asia/Kolkata
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                name: Daily Schedule
                summary: Daily on call schedule for modified production team
                description: ''
                time_zone: Asia/Kolkata
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                layers: []
                overrides: []
                unique_id: dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f
            application/xml:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                name: Daily Schedule
                summary: Daily on call schedule for modified production team
                description: ''
                time_zone: Asia/Kolkata
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                layers: []
                overrides: []
                unique_id: dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f
        '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:
        - Schedules
      summary: List all Schedule objects
      description: Returns a list of Schedule objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                - name: Weekly Schedule
                  summary: Weekly on call schedule for modified production team.
                  description: ''
                  time_zone: Asia/Calcutta
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  layers:
                    - shift_length: 604800
                      restrictions:
                        - duration: 14400
                          start_day_of_week: 7
                          start_time_of_day: '00:00:00'
                          unique_id: 35199b5e-a4ce-4456-8b97-2f3ee2083a85
                      name: Schedule Layer 1
                      users:
                        - user: 216bba3d-7268-4a8e-89e9-6
                          position: 1
                          unique_id: d8772886-1812-4a03-9a48-051d34547cf4
                        - user: 507dfda0-a1fd-40e5-943a-e
                          position: 2
                          unique_id: 8c3c8573-3e3c-442d-accd-4a62fee485e9
                      rotation_start_time: '2022-07-08T11:26:33Z'
                      rotation_end_time: '2023-07-15T11:26:33Z'
                      unique_id: a5ec8d44-572b-4ecd-9935-078aef6a2837
                      last_edited: '2022-07-08T11:28:47.218341Z'
                      restriction_type: 1
                      is_active: true
                  overrides:
                    - name: Override for Anshul
                      user: 507dfda0-a1fd-40e5-943a-e
                      start_time: '2022-07-09T05:57:14Z'
                      end_time: '2022-07-10T05:57:14Z'
                      unique_id: b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe
                  unique_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
                - name: Daily Schedule
                  summary: Daily on call schedule for modified production team
                  description: ''
                  time_zone: Asia/Kolkata
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  layers: []
                  overrides: []
                  unique_id: dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f
            application/xml:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                - name: Weekly Schedule
                  summary: Weekly on call schedule for modified production team.
                  description: ''
                  time_zone: Asia/Calcutta
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  layers:
                    - shift_length: 604800
                      restrictions:
                        - duration: 14400
                          start_day_of_week: 7
                          start_time_of_day: '00:00:00'
                          unique_id: 35199b5e-a4ce-4456-8b97-2f3ee2083a85
                      name: Schedule Layer 1
                      users:
                        - user: 216bba3d-7268-4a8e-89e9-6
                          position: 1
                          unique_id: d8772886-1812-4a03-9a48-051d34547cf4
                        - user: 507dfda0-a1fd-40e5-943a-e
                          position: 2
                          unique_id: 8c3c8573-3e3c-442d-accd-4a62fee485e9
                      rotation_start_time: '2022-07-08T11:26:33Z'
                      rotation_end_time: '2023-07-15T11:26:33Z'
                      unique_id: a5ec8d44-572b-4ecd-9935-078aef6a2837
                      last_edited: '2022-07-08T11:28:47.218341Z'
                      restriction_type: 1
                      is_active: true
                  overrides:
                    - name: Override for Anshul
                      user: 507dfda0-a1fd-40e5-943a-e
                      start_time: '2022-07-09T05:57:14Z'
                      end_time: '2022-07-10T05:57:14Z'
                      unique_id: b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe
                  unique_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
                - name: Daily Schedule
                  summary: Daily on call schedule for modified production team
                  description: ''
                  time_zone: Asia/Kolkata
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  layers: []
                  overrides: []
                  unique_id: dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f
        '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/account/teams/{team_id}/schedules/{schedule_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: schedule_id
        in: path
        description: unique_id of the Schedule object
        schema:
          type: string
        required: true
    get:
      tags:
        - Schedules
      summary: Retrieve the Schedule object
      description: Retrieve the specified Schedule object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                name: Weekly Schedule
                summary: Weekly on call schedule for modified production team.
                description: ''
                time_zone: Asia/Calcutta
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                layers:
                  - shift_length: 604800
                    restrictions:
                      - duration: 14400
                        start_day_of_week: 7
                        start_time_of_day: '00:00:00'
                        unique_id: 35199b5e-a4ce-4456-8b97-2f3ee2083a85
                    name: Schedule Layer 1
                    users:
                      - user: 216bba3d-7268-4a8e-89e9-6
                        position: 1
                        unique_id: d8772886-1812-4a03-9a48-051d34547cf4
                      - user: 507dfda0-a1fd-40e5-943a-e
                        position: 2
                        unique_id: 8c3c8573-3e3c-442d-accd-4a62fee485e9
                    rotation_start_time: '2022-07-08T11:26:33Z'
                    rotation_end_time: '2023-07-15T11:26:33Z'
                    unique_id: a5ec8d44-572b-4ecd-9935-078aef6a2837
                    last_edited: '2022-07-08T11:28:47.218341Z'
                    restriction_type: 1
                    is_active: true
                overrides:
                  - name: Override for Anshul
                    user: 507dfda0-a1fd-40e5-943a-e
                    start_time: '2022-07-09T05:57:14Z'
                    end_time: '2022-07-10T05:57:14Z'
                    unique_id: b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe
                unique_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
            application/xml:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                name: Weekly Schedule
                summary: Weekly on call schedule for modified production team.
                description: ''
                time_zone: Asia/Calcutta
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                layers:
                  - shift_length: 604800
                    restrictions:
                      - duration: 14400
                        start_day_of_week: 7
                        start_time_of_day: '00:00:00'
                        unique_id: 35199b5e-a4ce-4456-8b97-2f3ee2083a85
                    name: Schedule Layer 1
                    users:
                      - user: 216bba3d-7268-4a8e-89e9-6
                        position: 1
                        unique_id: d8772886-1812-4a03-9a48-051d34547cf4
                      - user: 507dfda0-a1fd-40e5-943a-e
                        position: 2
                        unique_id: 8c3c8573-3e3c-442d-accd-4a62fee485e9
                    rotation_start_time: '2022-07-08T11:26:33Z'
                    rotation_end_time: '2023-07-15T11:26:33Z'
                    unique_id: a5ec8d44-572b-4ecd-9935-078aef6a2837
                    last_edited: '2022-07-08T11:28:47.218341Z'
                    restriction_type: 1
                    is_active: true
                overrides:
                  - name: Override for Anshul
                    user: 507dfda0-a1fd-40e5-943a-e
                    start_time: '2022-07-09T05:57:14Z'
                    end_time: '2022-07-10T05:57:14Z'
                    unique_id: b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe
                unique_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
        '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:
        - Schedules
      summary: Update the Schedule object
      description: Updates the specified Schedule object by setting the values of the parameters passed in the request body.
      requestBody:
        description: Schedule update payload
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SchedulePayload'
            example:
              name: Modified weekly Schedule
          application/xml:
            schema:
              $ref: '#/components/schemas/SchedulePayload'
            example:
              name: Modified daily Schedule
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                name: Modified daily Schedule
                summary: Daily on call schedule for modified production team
                description: ''
                time_zone: Asia/Kolkata
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                layers: []
                overrides: []
                unique_id: dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f
            application/xml:
              schema:
                $ref: '#/components/schemas/Schedule'
              example:
                name: Modified daily Schedule
                summary: Daily on call schedule for modified production team
                description: ''
                time_zone: Asia/Kolkata
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                layers: []
                overrides: []
                unique_id: dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f
        '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.
    delete:
      tags:
        - Schedules
      summary: Delete the Schedule object
      description: Delete the specified Schedule object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/escalation_policies/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Escalation Policies
      summary: Create the Escalation Policy object
      description: Create the Escalation Policy object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Escalation Policy object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EPPayload'
            example:
              name: Production Escalation Policy
              rules:
                - delay: 2
                  targets:
                    - target_type: 2
                      target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
          application/xml:
            schema:
              $ref: '#/components/schemas/EPPayload'
            example:
              name: Production Escalation Policy
              rules:
                - delay: 2
                  targets:
                    - target_type: 2
                      target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                  - delay: 2
                    targets:
                      - target_type: 2
                        target_id: 85b563c8-18d0-4668-9462-9
                    position: 1
                    unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                  - delay: 2
                    targets:
                      - target_type: 2
                        target_id: 85b563c8-18d0-4668-9462-9
                    position: 1
                    unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
        '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:
        - Escalation Policies
      summary: List all Escalation Policy objects
      description: Returns a list of Escalation Policy objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                - name: Default Escalation Policy
                  summary: This is the default escalation policy for this team
                  description: ''
                  rules:
                    - delay: 0
                      targets:
                        - target_type: 2
                          target_id: 216bba3d-7268-4a8e-89e9-6
                      position: 1
                      unique_id: a857eb8b-28bf-4503-a1d5-a1d737c48fdc
                  unique_id: 19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  repeat_policy: 0
                  move_to_next: true
                  global_ep: false
                - name: Infra Escalation Policy
                  summary: ''
                  description: ''
                  rules:
                    - delay: 0
                      targets:
                        - target_type: 1
                          target_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
                        - target_type: 2
                          target_id: 507dfda0-a1fd-40e5-943a-e
                        - target_type: 2
                          target_id: 85b563c8-18d0-4668-9462-9
                      position: 1
                      unique_id: 23077ffc-8529-4848-89d0-1a37bdf63d4e
                    - delay: 4
                      targets:
                        - target_type: 2
                          target_id: 216bba3d-7268-4a8e-89e9-6
                      position: 2
                      unique_id: 5298ba34-f23d-49a6-a4a2-814a7beb4b54
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  repeat_policy: 2
                  move_to_next: true
                  global_ep: false
                - name: Production Escalation Policy
                  summary: ''
                  description: ''
                  rules:
                    - delay: 2
                      targets:
                        - target_type: 2
                          target_id: 85b563c8-18d0-4668-9462-9
                      position: 1
                      unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                  unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  repeat_policy: 0
                  move_to_next: true
                  global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                - name: Default Escalation Policy
                  summary: This is the default escalation policy for this team
                  description: ''
                  rules:
                    - delay: 0
                      targets:
                        - target_type: 2
                          target_id: 216bba3d-7268-4a8e-89e9-6
                      position: 1
                      unique_id: a857eb8b-28bf-4503-a1d5-a1d737c48fdc
                  unique_id: 19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  repeat_policy: 0
                  move_to_next: true
                  global_ep: false
                - name: Infra Escalation Policy
                  summary: ''
                  description: ''
                  rules:
                    - delay: 0
                      targets:
                        - target_type: 1
                          target_id: 4a3025f3-836f-4d18-8923-7adfe5690d17
                        - target_type: 2
                          target_id: 507dfda0-a1fd-40e5-943a-e
                        - target_type: 2
                          target_id: 85b563c8-18d0-4668-9462-9
                      position: 1
                      unique_id: 23077ffc-8529-4848-89d0-1a37bdf63d4e
                    - delay: 4
                      targets:
                        - target_type: 2
                          target_id: 216bba3d-7268-4a8e-89e9-6
                      position: 2
                      unique_id: 5298ba34-f23d-49a6-a4a2-814a7beb4b54
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  repeat_policy: 2
                  move_to_next: true
                  global_ep: false
                - name: Production Escalation Policy
                  summary: ''
                  description: ''
                  rules:
                    - delay: 2
                      targets:
                        - target_type: 2
                          target_id: 85b563c8-18d0-4668-9462-9
                      position: 1
                      unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                  unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  repeat_policy: 0
                  move_to_next: true
                  global_ep: false
        '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/account/teams/{team_id}/escalation_policies/{escalation_policy_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: escalation_policy_id
        in: path
        description: unique_id of the Escalation Policy object
        schema:
          type: string
        required: true
    get:
      tags:
        - Escalation Policies
      summary: Retrieve the Escalation Policy object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                  - delay: 2
                    targets:
                      - target_type: 2
                        target_id: 85b563c8-18d0-4668-9462-9
                    position: 1
                    unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Production Escalation Policy
                summary: ''
                description: ''
                rules:
                  - delay: 2
                    targets:
                      - target_type: 2
                        target_id: 85b563c8-18d0-4668-9462-9
                    position: 1
                    unique_id: 32b594ec-72f6-4eeb-8024-ef25a8b9f97e
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
        '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:
        - Escalation Policies
      summary: Update the Escalation Policy object
      description: Updates the specified Escalation Policy 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 Escalation Policy object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EPPayload'
            example:
              name: Modified Production Escalation Policy
              rules:
                - delay: 2
                  targets:
                    - target_type: 2
                      target_id: 85b563c8-18d0-4668-9462-9
                  position: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Modified Production Escalation Policy
                summary: ''
                description: ''
                rules:
                  - delay: 2
                    targets:
                      - target_type: 2
                        target_id: 85b563c8-18d0-4668-9462-9
                    position: 1
                    unique_id: f15f0044-25a1-4c60-888a-c7f1a6b7d4ce
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
            application/xml:
              schema:
                $ref: '#/components/schemas/EP'
              example:
                name: Modified Production Escalation Policy
                summary: ''
                description: ''
                rules:
                  - delay: 2
                    targets:
                      - target_type: 2
                        target_id: 85b563c8-18d0-4668-9462-9
                    position: 1
                    unique_id: f15f0044-25a1-4c60-888a-c7f1a6b7d4ce
                unique_id: 904cfcad-9fe1-4dc7-b578-ad0f5a2950fd
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                repeat_policy: 0
                move_to_next: true
                global_ep: false
        '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.
    delete:
      tags:
        - Escalation Policies
      summary: Delete the Escalation Policy object
      description: Delete the specified Escalation Policy object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/services/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Services
      summary: Create the Service object
      description: Create the Service object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Service object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServicePayload'
            example:
              name: Production Service
              description: This is the description for Production Service
              team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
              task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
              status: 1
              escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
              sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
          application/xml:
            schema:
              $ref: '#/components/schemas/ServicePayload'
            example:
              name: Production Service
              description: This is the description for Production Service
              team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
              task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
              status: 1
              escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
              sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServicePostPut'
              example:
                name: Production Service
                creation_date: '2022-07-08T12:38:50.511179Z'
                summary: ''
                description: This is the description for Production Service
                unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                auto_resolve_timeout: 0
                created_by: 216bba3d-7268-4a8e-89e9-6
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                acknowledgement_timeout: 0
                status: 1
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                collation_time: 0
                collation: 0
                under_maintenance: false
            application/xml:
              schema:
                $ref: '#/components/schemas/ServicePostPut'
              example:
                name: Production Service
                creation_date: '2022-07-08T12:38:50.511179Z'
                summary: ''
                description: This is the description for Production Service
                unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                auto_resolve_timeout: 0
                created_by: 216bba3d-7268-4a8e-89e9-6
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                acknowledgement_timeout: 0
                status: 1
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                collation_time: 0
                collation: 0
                under_maintenance: false
        '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:
        - Services
      summary: List all Service objects
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceGet'
              example:
                - name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  under_maintenance: false
                  collation: 1
                  collation_time: 2
                - name: Production Service
                  creation_date: '2022-07-08T12:38:50.511179Z'
                  summary: ''
                  description: This is the description for Production Service
                  unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  under_maintenance: false
                  collation: 0
                  collation_time: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/ServiceGet'
              example:
                - name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  under_maintenance: false
                  collation: 1
                  collation_time: 2
                - name: Production Service
                  creation_date: '2022-07-08T12:38:50.511179Z'
                  summary: ''
                  description: This is the description for Production Service
                  unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  under_maintenance: false
                  collation: 0
                  collation_time: 0
        '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/account/teams/{team_id}/services/{service_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: service_id
        in: path
        description: unique_id of the Service object
        schema:
          type: string
        required: true
    get:
      tags:
        - Services
      summary: Retrieve the Service object
      description: Retrieve the specified Service object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceGet'
              example:
                name: Production Service
                creation_date: '2022-07-08T12:38:50.511179Z'
                summary: ''
                description: This is the description for Production Service
                unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                auto_resolve_timeout: 0
                created_by: 216bba3d-7268-4a8e-89e9-6
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                acknowledgement_timeout: 0
                status: 1
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                under_maintenance: false
                collation: 0
                collation_time: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/ServiceGet'
              example:
                name: Production Service
                creation_date: '2022-07-08T12:38:50.511179Z'
                summary: ''
                description: This is the description for Production Service
                unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                auto_resolve_timeout: 0
                created_by: 216bba3d-7268-4a8e-89e9-6
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                acknowledgement_timeout: 0
                status: 1
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                under_maintenance: false
                collation: 0
                collation_time: 0
        '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:
        - Services
      summary: Update the Service object
      description: Updates the specified Service 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 Service object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServicePayload'
            example:
              name: Modified Production Service
              description: This is the description for Production Service
              team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
              task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
              status: 1
              escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
              sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
          application/xml:
            schema:
              $ref: '#/components/schemas/ServicePayload'
            example:
              name: Modified Production Service
              description: This is the description for Production Service
              team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
              task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
              status: 1
              escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
              sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServicePostPut'
              example:
                name: Modified Production Service
                creation_date: '2022-07-08T12:38:50.511179Z'
                summary: ''
                description: This is the description for Production Service
                unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                auto_resolve_timeout: 0
                created_by: 216bba3d-7268-4a8e-89e9-6
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                acknowledgement_timeout: 0
                status: 1
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                collation_time: 0
                collation: 0
                under_maintenance: false
            application/xml:
              schema:
                $ref: '#/components/schemas/ServicePostPut'
              example:
                name: Modified Production Service
                creation_date: '2022-07-08T12:38:50.511179Z'
                summary: ''
                description: This is the description for Production Service
                unique_id: 3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e
                auto_resolve_timeout: 0
                created_by: 216bba3d-7268-4a8e-89e9-6
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                acknowledgement_timeout: 0
                status: 1
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                collation_time: 0
                collation: 0
                under_maintenance: false
        '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.
    delete:
      tags:
        - Services
      summary: Delete the Service object
      description: Delete the specified Service object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/services/{service_id}/integrations':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: service_id
        in: path
        description: unique_id of the Service object
        schema:
          type: string
        required: true
    post:
      tags:
        - Integrations
      summary: Create the Integration object
      description: Create the Integration object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Integration object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntegrationPayload'
            example:
              name: Infra custom Integration
              summary: This is the summary for Infra custom Integration
              application: 07c84d47-7e71-49ec-b781-1cc81a78086e
          application/xml:
            schema:
              $ref: '#/components/schemas/IntegrationPayload'
            example:
              name: Infra custom Integration
              summary: This is the summary for Infra custom Integration
              application: 07c84d47-7e71-49ec-b781-1cc81a78086e
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                name: Infra custom Integration
                creation_date: '2022-07-08T12:52:22.906327Z'
                summary: This is the summary for Infra custom Integration
                unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                application_reference:
                  name: Cloudwatch V2
                  icon_url: Cloudwatch V2
                  summary: Cloudwatch V2
                  description: Cloudwatch V2
                  unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  availability_plan_id: 1
                  setup_instructions: <IntegrationURL/>
                  extension: cloudwatch_v2
                  application_type: 0
                  categories: 'API,Analytics'
                  documentation_link: Cloudwatch V2
                integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                created_by: 216bba3d-7268-4a8e-89e9-6
                is_enabled: true
                create_incidents_for: 1
                integration_type: 0
                default_urgency: 1
                webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
            application/xml:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                name: Infra custom Integration
                creation_date: '2022-07-08T12:52:22.906327Z'
                summary: This is the summary for Infra custom Integration
                unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                application_reference:
                  name: Cloudwatch V2
                  icon_url: Cloudwatch V2
                  summary: Cloudwatch V2
                  description: Cloudwatch V2
                  unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  availability_plan_id: 1
                  setup_instructions: <IntegrationURL/>
                  extension: cloudwatch_v2
                  application_type: 0
                  categories: 'API,Analytics'
                  documentation_link: Cloudwatch V2
                integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                created_by: 216bba3d-7268-4a8e-89e9-6
                is_enabled: true
                create_incidents_for: 1
                integration_type: 0
                default_urgency: 1
                webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
        '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:
        - Integrations
      summary: List all Integration objects
      description: 'Returns a list of Integration objects. The Integration objects are sorted by creation_date, with the most recent Integration object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                - name: Cloudwatch V2
                  creation_date: '2022-07-08T12:31:37.435711Z'
                  summary: Edit summary for this integration
                  unique_id: de8830c5-8596-4ab6-937e-8d5df08499d8
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  application_reference:
                    name: Cloudwatch V2
                    icon_url: Cloudwatch V2
                    summary: Cloudwatch V2
                    description: Cloudwatch V2
                    unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                    availability_plan_id: 1
                    setup_instructions: <IntegrationURL/>
                    extension: cloudwatch_v2
                    application_type: 0
                    categories: 'API,Analytics'
                    documentation_link: Cloudwatch V2
                  integration_key: bf167d3d-93dc-43b6-9066-a10b0bafcc09
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/bf167d3d-93dc-43b6-9066-a10b0bafcc09/'
                - name: Conference bridge
                  creation_date: '2022-07-08T12:31:37.441939Z'
                  summary: Edit summary for this integration
                  unique_id: 38d5f0f9-a2d4-44dd-bc8c-4f2fdeea284e
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: bbfdaa85-a1c1-4d0a-b59a-0e24f081d237
                  application_reference:
                    name: Conference bridge
                    icon_url: 'https://www.softexia.com/wp-content/uploads/2020/03/ZOOM_logo.png'
                    summary: Conference bridge
                    description: Conference bridge
                    unique_id: bbfdaa85-a1c1-4d0a-b59a-0e24f081d237
                    availability_plan_id: 1
                    setup_instructions: Conference bridge
                    extension: conf
                    application_type: 1
                    categories: 'API,Analytics,Collaboration'
                    documentation_link: 'http://docs.zenduty.com/'
                  integration_key: 9efb306f-49b2-4b76-a428-845c7782deed
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/conf/9efb306f-49b2-4b76-a428-845c7782deed/'
                - name: Jira (2-way)
                  creation_date: '2022-07-08T12:31:37.448374Z'
                  summary: Edit summary for this integration
                  unique_id: c6a8fdf5-51a5-42a2-b3c9-c2d74b870e71
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 0625ca3a-b064-45d0-9438-ff09953ba7c2
                  application_reference:
                    name: Jira (2-way)
                    icon_url: 'https://images.squarespace-cdn.com/content/v1/5dc1ccd7e0292e070ef93a24/1582586865629-PN8VT9EY3DPJSTYL46AC/jira-small%402x.png?format=300w'
                    summary: Sample jira 2way integration
                    description: Sample jira 2way integration
                    unique_id: 0625ca3a-b064-45d0-9438-ff09953ba7c2
                    availability_plan_id: 1
                    setup_instructions: 'https://docs.zenduty.com/docs/jira'
                    extension: jiracloud
                    application_type: 1
                    categories: 'API,Popular'
                    documentation_link: 'https://docs.zenduty.com/docs/jira'
                  integration_key: 5eb0fd9b-da65-4f36-8dff-f32fdd4dfdc9
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/jiracloud/5eb0fd9b-da65-4f36-8dff-f32fdd4dfdc9/'
                - name: Zoom
                  creation_date: '2022-07-08T12:31:37.453423Z'
                  summary: Edit summary for this integration
                  unique_id: faa5594e-aea5-4c5a-9d2b-846c02bd8cf9
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 41dc6d06-b33e-406d-a11f-efb11b74243c
                  application_reference:
                    name: Zoom
                    icon_url: 'https://pbs.twimg.com/media/EUjGOkTUEAAeKUL?format=png'
                    summary: Zoom Outgoing
                    description: Zoom Outgoing
                    unique_id: 41dc6d06-b33e-406d-a11f-efb11b74243c
                    availability_plan_id: 1
                    setup_instructions: Some setup instructions
                    extension: zoom
                    application_type: 1
                    categories: 'Popular,APM'
                    documentation_link: 'https://docs.zenduty.com'
                  integration_key: 181c2f90-a04a-41e5-a7ca-a16d68296e82
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/zoom/181c2f90-a04a-41e5-a7ca-a16d68296e82/'
                - name: Infra custom Integration
                  creation_date: '2022-07-08T12:52:22.906327Z'
                  summary: This is the summary for Infra custom Integration
                  unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  application_reference:
                    name: Cloudwatch V2
                    icon_url: Cloudwatch V2
                    summary: Cloudwatch V2
                    description: Cloudwatch V2
                    unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                    availability_plan_id: 1
                    setup_instructions: <IntegrationURL/>
                    extension: cloudwatch_v2
                    application_type: 0
                    categories: 'API,Analytics'
                    documentation_link: Cloudwatch V2
                  integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
            application/xml:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                - name: Cloudwatch V2
                  creation_date: '2022-07-08T12:31:37.435711Z'
                  summary: Edit summary for this integration
                  unique_id: de8830c5-8596-4ab6-937e-8d5df08499d8
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  application_reference:
                    name: Cloudwatch V2
                    icon_url: Cloudwatch V2
                    summary: Cloudwatch V2
                    description: Cloudwatch V2
                    unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                    availability_plan_id: 1
                    setup_instructions: <IntegrationURL/>
                    extension: cloudwatch_v2
                    application_type: 0
                    categories: 'API,Analytics'
                    documentation_link: Cloudwatch V2
                  integration_key: bf167d3d-93dc-43b6-9066-a10b0bafcc09
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/bf167d3d-93dc-43b6-9066-a10b0bafcc09/'
                - name: Conference bridge
                  creation_date: '2022-07-08T12:31:37.441939Z'
                  summary: Edit summary for this integration
                  unique_id: 38d5f0f9-a2d4-44dd-bc8c-4f2fdeea284e
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: bbfdaa85-a1c1-4d0a-b59a-0e24f081d237
                  application_reference:
                    name: Conference bridge
                    icon_url: 'https://www.softexia.com/wp-content/uploads/2020/03/ZOOM_logo.png'
                    summary: Conference bridge
                    description: Conference bridge
                    unique_id: bbfdaa85-a1c1-4d0a-b59a-0e24f081d237
                    availability_plan_id: 1
                    setup_instructions: Conference bridge
                    extension: conf
                    application_type: 1
                    categories: 'API,Analytics,Collaboration'
                    documentation_link: 'http://docs.zenduty.com/'
                  integration_key: 9efb306f-49b2-4b76-a428-845c7782deed
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/conf/9efb306f-49b2-4b76-a428-845c7782deed/'
                - name: Jira (2-way)
                  creation_date: '2022-07-08T12:31:37.448374Z'
                  summary: Edit summary for this integration
                  unique_id: c6a8fdf5-51a5-42a2-b3c9-c2d74b870e71
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 0625ca3a-b064-45d0-9438-ff09953ba7c2
                  application_reference:
                    name: Jira (2-way)
                    icon_url: 'https://images.squarespace-cdn.com/content/v1/5dc1ccd7e0292e070ef93a24/1582586865629-PN8VT9EY3DPJSTYL46AC/jira-small%402x.png?format=300w'
                    summary: Sample jira 2way integration
                    description: Sample jira 2way integration
                    unique_id: 0625ca3a-b064-45d0-9438-ff09953ba7c2
                    availability_plan_id: 1
                    setup_instructions: 'https://docs.zenduty.com/docs/jira'
                    extension: jiracloud
                    application_type: 1
                    categories: 'API,Popular'
                    documentation_link: 'https://docs.zenduty.com/docs/jira'
                  integration_key: 5eb0fd9b-da65-4f36-8dff-f32fdd4dfdc9
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/jiracloud/5eb0fd9b-da65-4f36-8dff-f32fdd4dfdc9/'
                - name: Zoom
                  creation_date: '2022-07-08T12:31:37.453423Z'
                  summary: Edit summary for this integration
                  unique_id: faa5594e-aea5-4c5a-9d2b-846c02bd8cf9
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 41dc6d06-b33e-406d-a11f-efb11b74243c
                  application_reference:
                    name: Zoom
                    icon_url: 'https://pbs.twimg.com/media/EUjGOkTUEAAeKUL?format=png'
                    summary: Zoom Outgoing
                    description: Zoom Outgoing
                    unique_id: 41dc6d06-b33e-406d-a11f-efb11b74243c
                    availability_plan_id: 1
                    setup_instructions: Some setup instructions
                    extension: zoom
                    application_type: 1
                    categories: 'Popular,APM'
                    documentation_link: 'https://docs.zenduty.com'
                  integration_key: 181c2f90-a04a-41e5-a7ca-a16d68296e82
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/zoom/181c2f90-a04a-41e5-a7ca-a16d68296e82/'
                - name: Infra custom Integration
                  creation_date: '2022-07-08T12:52:22.906327Z'
                  summary: This is the summary for Infra custom Integration
                  unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  application_reference:
                    name: Cloudwatch V2
                    icon_url: Cloudwatch V2
                    summary: Cloudwatch V2
                    description: Cloudwatch V2
                    unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                    availability_plan_id: 1
                    setup_instructions: <IntegrationURL/>
                    extension: cloudwatch_v2
                    application_type: 0
                    categories: 'API,Analytics'
                    documentation_link: Cloudwatch V2
                  integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  is_enabled: true
                  create_incidents_for: 1
                  integration_type: 0
                  default_urgency: 1
                  webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
        '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/account/teams/{team_id}/services/{service_id}/integrations/{integration_id}':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: service_id
        in: path
        description: unique_id of the Service object
        schema:
          type: string
        required: true
      - name: integration_id
        in: path
        description: unique_id of the Integration object
        schema:
          type: string
        required: true
    get:
      tags:
        - Integrations
      summary: Retrieve the Integration object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                name: Infra custom Integration
                creation_date: '2022-07-08T12:52:22.906327Z'
                summary: This is the summary for Infra custom Integration
                unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                application_reference:
                  name: Cloudwatch V2
                  icon_url: Cloudwatch V2
                  summary: Cloudwatch V2
                  description: Cloudwatch V2
                  unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  availability_plan_id: 1
                  setup_instructions: <IntegrationURL/>
                  extension: cloudwatch_v2
                  application_type: 0
                  categories: 'API,Analytics'
                  documentation_link: Cloudwatch V2
                integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                created_by: 216bba3d-7268-4a8e-89e9-6
                is_enabled: true
                create_incidents_for: 1
                integration_type: 0
                default_urgency: 1
                webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
            application/xml:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                name: Infra custom Integration
                creation_date: '2022-07-08T12:52:22.906327Z'
                summary: This is the summary for Infra custom Integration
                unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                application_reference:
                  name: Cloudwatch V2
                  icon_url: Cloudwatch V2
                  summary: Cloudwatch V2
                  description: Cloudwatch V2
                  unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  availability_plan_id: 1
                  setup_instructions: <IntegrationURL/>
                  extension: cloudwatch_v2
                  application_type: 0
                  categories: 'API,Analytics'
                  documentation_link: Cloudwatch V2
                integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                created_by: 216bba3d-7268-4a8e-89e9-6
                is_enabled: true
                create_incidents_for: 1
                integration_type: 0
                default_urgency: 1
                webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
        '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:
        - Integrations
      summary: Update the Integration object
      description: Updates the specified Integration 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 Integration object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IntegrationPayload'
            example:
              name: Modified Infra custom Integration
              application: 07c84d47-7e71-49ec-b781-1cc81a78086e
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                name: Modified Infra custom Integration
                creation_date: '2022-07-08T12:52:22.906327Z'
                summary: This is the summary for Infra custom Integration
                unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                application_reference:
                  name: Cloudwatch V2
                  icon_url: Cloudwatch V2
                  summary: Cloudwatch V2
                  description: Cloudwatch V2
                  unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  availability_plan_id: 1
                  setup_instructions: <IntegrationURL/>
                  extension: cloudwatch_v2
                  application_type: 0
                  categories: 'API,Analytics'
                  documentation_link: Cloudwatch V2
                integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                created_by: 216bba3d-7268-4a8e-89e9-6
                is_enabled: true
                create_incidents_for: 1
                integration_type: 0
                default_urgency: 1
                webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
            application/xml:
              schema:
                $ref: '#/components/schemas/Integration'
              example:
                name: Modified Infra custom Integration
                creation_date: '2022-07-08T12:52:22.906327Z'
                summary: This is the summary for Infra custom Integration
                unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                application: 07c84d47-7e71-49ec-b781-1cc81a78086e
                application_reference:
                  name: Cloudwatch V2
                  icon_url: Cloudwatch V2
                  summary: Cloudwatch V2
                  description: Cloudwatch V2
                  unique_id: 07c84d47-7e71-49ec-b781-1cc81a78086e
                  availability_plan_id: 1
                  setup_instructions: <IntegrationURL/>
                  extension: cloudwatch_v2
                  application_type: 0
                  categories: 'API,Analytics'
                  documentation_link: Cloudwatch V2
                integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                created_by: 216bba3d-7268-4a8e-89e9-6
                is_enabled: true
                create_incidents_for: 1
                integration_type: 0
                default_urgency: 1
                webhook_url: 'https://www.zenduty.com/api/integration/cloudwatch_v2/5f306dae-b327-4ba9-8f3a-ab4cffd57645/'
        '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.
    delete:
      tags:
        - Integrations
      summary: Delete the Integration object
      description: Delete the specified Integration object permanently
      responses:
        '204':
          description: Success
        '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/account/teams/{team_id}/services/{service_id}/integrations/{integration_id}/alerts/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: service_id
        in: path
        description: unique_id of the Service object
        schema:
          type: string
        required: true
      - name: integration_id
        in: path
        description: unique_id of the Integration object
        schema:
          type: string
        required: true
    get:
      tags:
        - Integration Alerts
      summary: List all Integration Alerts objects
      description: 'Returns a list of Integration Alerts objects. The Integration Alerts objects are sorted by creation_date, with the most recent Integration Alerts object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationAlert'
              example:
                - integration_object:
                    name: Modified Infra custom Integration
                    creation_date: '2022-07-08T12:52:22.906327Z'
                    summary: This is the summary for Infra custom Integration
                    unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                    is_enabled: true
                    integration_type: 0
                  summary: ''
                  incident: null
                  creation_date: '2022-07-08T13:14:45.556654Z'
                  message: Infra Integration Alert 1
                  integration: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  suppressed: false
                  entity_id: bbd1951b-2a99-4c5e-8f6b-4cce4ef3
                  alert_type: '0'
                  unique_id: hCGwjDmKZvQz2MzNsyKmu2
                  images: []
                  urls: []
                  notes: []
                - integration_object:
                    name: Modified Infra custom Integration
                    creation_date: '2022-07-08T12:52:22.906327Z'
                    summary: This is the summary for Infra custom Integration
                    unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                    is_enabled: true
                    integration_type: 0
                  summary: ''
                  incident: 2
                  creation_date: '2022-07-08T13:14:31.300448Z'
                  message: Infra Integration Alert
                  integration: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  suppressed: false
                  entity_id: de8cf7fc-08ee-4966-b8d3-b6b631da
                  alert_type: '3'
                  unique_id: xc6qbUftpzkQ28f2MxpRxh
                  images: []
                  urls: []
                  notes: []
            application/xml:
              schema:
                $ref: '#/components/schemas/IntegrationAlert'
              example:
                - integration_object:
                    name: Modified Infra custom Integration
                    creation_date: '2022-07-08T12:52:22.906327Z'
                    summary: This is the summary for Infra custom Integration
                    unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                    is_enabled: true
                    integration_type: 0
                  summary: ''
                  incident: null
                  creation_date: '2022-07-08T13:14:45.556654Z'
                  message: Infra Integration Alert 1
                  integration: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  suppressed: false
                  entity_id: bbd1951b-2a99-4c5e-8f6b-4cce4ef3
                  alert_type: '0'
                  unique_id: hCGwjDmKZvQz2MzNsyKmu2
                  images: []
                  urls: []
                  notes: []
                - integration_object:
                    name: Modified Infra custom Integration
                    creation_date: '2022-07-08T12:52:22.906327Z'
                    summary: This is the summary for Infra custom Integration
                    unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                    is_enabled: true
                    integration_type: 0
                  summary: ''
                  incident: 2
                  creation_date: '2022-07-08T13:14:31.300448Z'
                  message: Infra Integration Alert
                  integration: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  suppressed: false
                  entity_id: de8cf7fc-08ee-4966-b8d3-b6b631da
                  alert_type: '3'
                  unique_id: xc6qbUftpzkQ28f2MxpRxh
                  images: []
                  urls: []
                  notes: []
        '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/incidents/:
    post:
      tags:
        - Incidents
      summary: Create the Incident object
      description: Create the Incident object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Incident object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentPayload'
            example:
              title: Production Incident
              service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
          application/xml:
            schema:
              $ref: '#/components/schemas/IncidentPayload'
            example:
              title: Production Incident
              service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                summary: ''
                incident_number: 3
                creation_date: '2022-07-08T13:21:25.846623Z'
                status: 1
                unique_id: uJVWfdAeoPDm3pk2gG2URn
                service_object:
                  name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  collation_time: 2
                  collation: 1
                  under_maintenance: false
                title: Production Incident
                incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                urgency: 1
                merged_with: null
                assigned_to: null
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                escalation_policy_object:
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  name: Infra Escalation Policy
                assigned_to_name: ''
                resolved_date: null
                acknowledged_date: null
                context_window_start: null
                context_window_end: null
                tags: []
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                sla_object:
                  unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                team_priority_object:
                  unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  name: Infra Priority
                  description: This is the description for Infra Priority
                  color: orange
            application/xml:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                summary: ''
                incident_number: 3
                creation_date: '2022-07-08T13:21:25.846623Z'
                status: 1
                unique_id: uJVWfdAeoPDm3pk2gG2URn
                service_object:
                  name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  collation_time: 2
                  collation: 1
                  under_maintenance: false
                title: Production Incident
                incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                urgency: 1
                merged_with: null
                assigned_to: null
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                escalation_policy_object:
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  name: Infra Escalation Policy
                assigned_to_name: ''
                resolved_date: null
                acknowledged_date: null
                context_window_start: null
                context_window_end: null
                tags: []
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                sla_object:
                  unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                team_priority_object:
                  unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  name: Infra Priority
                  description: This is the description for Infra Priority
                  color: orange
        '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:
      parameters:
        - in: query
          name: page
          description: pagination page number. example - `page=1`
          schema:
            type: integer
        - in: query
          name: status
          description: 'Status of the Incident object. For open incidents(triggered and acknowledged) use `-1`, for all incidents(triggered, acknowledged and resolved) use `0`, for triggered incidents use `1`, for acknowledged incidents use `2` and for resolved incidents use `3`. example - `status=1`'
          schema:
            type: integer
        - in: query
          name: team_ids
          description: 'Represents an array of the Team object''s unique_ids and filters incidents based on the Team objects whose unique_ids were passed in the array. example - `team_ids=[“e09a815d-5c23-4575-a346-e25bdbd4dbdb”, “3756a74b-5012-4f8b-94e3-ccd5f1ead4c7"]`'
          schema:
            type: array
            items:
              type: string
        - in: query
          name: all_teams
          description: 'This query parameter can be `0` or `1`. To filter incidents based on all teams use `0` and to filter incidents based on the teams the requesting user belongs to, use `1`. example - `all_teams=1`'
          schema:
            type: integer
        - in: query
          name: service_ids
          description: 'Represents an array of the Service object''s unique_ids and filters incidents based on the Service objects whose unique_ids were passed in the array. example - `service_ids=[“d1a764f1-458a-4a5a-bf2e-93d5332b1059”, “57997fbb-00ac-4a17-83f8-34fd49c28498", “8e729ff5-04ec-4d7e-b48c-226a0bb2933c”]`'
          schema:
            type: array
            items:
              type: string
        - in: query
          name: user_ids
          description: 'Represents an array of the User object''s usernames and filters incidents based on the assigned_to User object whose usernames were passed in the array. example - `user_ids=[“259d67f8-c975-4403-b9b8-8", “08a4805c-8f07-4221-85c2-1”, “b115be42-9c4f-4277-a885-9"]`'
          schema:
            type: array
            items:
              type: string
        - in: query
          name: priority_name
          description: Represents the Priority object's name and filters incidents based on the passed Priority object. example - `priority_name=p1`
          schema:
            type: string
        - in: query
          name: priority_ids
          description: 'Represents an array of the Priority object''s unique_ids and filters incidents based on the Priority objects whose unique_ids were passed in the array. example - `priority_ids=[“9a29f200-b360-47ae-a9d2-1ef6e5f55765", “115ed500-00e0-4baf-807b-fad306e22712”]`'
          schema:
            type: array
            items:
              type: string
        - in: query
          name: tag_ids
          description: 'Represents an array of the Team Tag object''s unique_ids and filters incidents based on the Team Tag objects whose unique_ids were passed in the array. example - `tag_ids=[“88c04d0b-271d-4d7d-bffd-a3dcaabd8c9c”, “410dc2dd-c1df-4004-aea1-fb55cd9c8afe”]`'
          schema:
            type: array
            items:
              type: string
        - in: query
          name: sla_ids
          description: 'Represents an array of the Team SLA object''s unique_ids and filters incidents based on the Team SLA objects whose unique_ids were passed in the array. example - `sla_ids=[“646d32ee-d044-4171-bef8-3d7e884fa872", “dc287c19-582c-498b-82b6-3b81c33bc0dd”]`'
          schema:
            type: array
            items:
              type: string
        - in: query
          name: from_date
          description: Represents from_date and filters incidents whose creation_date is greater than the specified from_date. example - `from_date="2023-02-01"`
          schema:
            type: string
        - in: query
          name: to_date
          description: Represents to_date and filters incidents whose creation_date is lesser than the specified to_date. example - `to_date="2023-03-06"`
          schema:
            type: string
      tags:
        - Incidents
      summary: List all Incident objects
      description: 'Returns a list of Incident objects. The Incident objects are sorted by creation_date, with the most recent Incident object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                - summary: ''
                  incident_number: 3
                  creation_date: '2022-07-08T13:21:25.846623Z'
                  status: 1
                  unique_id: uJVWfdAeoPDm3pk2gG2URn
                  service_object:
                    name: Infra Service
                    creation_date: '2022-07-08T12:31:37.429973Z'
                    summary: ''
                    description: This is the description for Infra Service
                    unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    auto_resolve_timeout: 0
                    created_by: 216bba3d-7268-4a8e-89e9-6
                    team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                    acknowledgement_timeout: 0
                    status: 1
                    escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    collation_time: 2
                    collation: 1
                    under_maintenance: false
                  title: Production Incident
                  incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  urgency: 1
                  merged_with: null
                  assigned_to: 507dfda0-a1fd-40e5-943a-e
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  escalation_policy_object:
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    name: Infra Escalation Policy
                  assigned_to_name: Mary Jane
                  resolved_date: null
                  acknowledged_date: null
                  context_window_start: null
                  context_window_end: null
                  tags: []
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  sla_object:
                    unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    name: Infra SLA
                    is_active: true
                    acknowledge_time: 30
                    resolve_time: 60
                    creation_date: '2022-07-08T12:29:08.545605Z'
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team_priority_object:
                    unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    name: Infra Priority
                    description: This is the description for Infra Priority
                    color: orange
                - summary: ''
                  incident_number: 2
                  creation_date: '2022-07-08T13:14:31.197682Z'
                  status: 1
                  unique_id: GQ5hJLcFwJHTUes6p8V7i8
                  service_object:
                    name: Infra Service
                    creation_date: '2022-07-08T12:31:37.429973Z'
                    summary: ''
                    description: This is the description for Infra Service
                    unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    auto_resolve_timeout: 0
                    created_by: 216bba3d-7268-4a8e-89e9-6
                    team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                    acknowledgement_timeout: 0
                    status: 1
                    escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    collation_time: 2
                    collation: 1
                    under_maintenance: false
                  title: Infra Integration Alert
                  incident_key: EDnsTiArj3nkw43mHnxYGB
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  urgency: 1
                  merged_with: null
                  assigned_to: 507dfda0-a1fd-40e5-943a-e
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  escalation_policy_object:
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    name: Infra Escalation Policy
                  assigned_to_name: Mary Jane
                  resolved_date: null
                  acknowledged_date: null
                  context_window_start: null
                  context_window_end: null
                  tags: []
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  sla_object:
                    unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    name: Infra SLA
                    is_active: true
                    acknowledge_time: 30
                    resolve_time: 60
                    creation_date: '2022-07-08T12:29:08.545605Z'
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team_priority_object:
                    unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    name: Infra Priority
                    description: This is the description for Infra Priority
                    color: orange
                - summary: This is the summary for Infra Incident
                  incident_number: 1
                  creation_date: '2022-07-08T12:32:18.828496Z'
                  status: 1
                  unique_id: U2gGkyJnLQLkX2zQnvkpLW
                  service_object:
                    name: Infra Service
                    creation_date: '2022-07-08T12:31:37.429973Z'
                    summary: ''
                    description: This is the description for Infra Service
                    unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    auto_resolve_timeout: 0
                    created_by: 216bba3d-7268-4a8e-89e9-6
                    team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                    acknowledgement_timeout: 0
                    status: 1
                    escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    collation_time: 2
                    collation: 1
                    under_maintenance: false
                  title: Infra Incident
                  incident_key: HEnzgn3H9DidvJrzTqETd6
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  urgency: 1
                  merged_with: null
                  assigned_to: 507dfda0-a1fd-40e5-943a-e
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  escalation_policy_object:
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    name: Infra Escalation Policy
                  assigned_to_name: Mary Jane
                  resolved_date: null
                  acknowledged_date: null
                  context_window_start: null
                  context_window_end: null
                  tags: []
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  sla_object:
                    unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    name: Infra SLA
                    is_active: true
                    acknowledge_time: 30
                    resolve_time: 60
                    creation_date: '2022-07-08T12:29:08.545605Z'
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team_priority_object:
                    unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    name: Infra Priority
                    description: This is the description for Infra Priority
                    color: orange
            application/xml:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                - summary: ''
                  incident_number: 3
                  creation_date: '2022-07-08T13:21:25.846623Z'
                  status: 1
                  unique_id: uJVWfdAeoPDm3pk2gG2URn
                  service_object:
                    name: Infra Service
                    creation_date: '2022-07-08T12:31:37.429973Z'
                    summary: ''
                    description: This is the description for Infra Service
                    unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    auto_resolve_timeout: 0
                    created_by: 216bba3d-7268-4a8e-89e9-6
                    team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                    acknowledgement_timeout: 0
                    status: 1
                    escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    collation_time: 2
                    collation: 1
                    under_maintenance: false
                  title: Production Incident
                  incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  urgency: 1
                  merged_with: null
                  assigned_to: 507dfda0-a1fd-40e5-943a-e
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  escalation_policy_object:
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    name: Infra Escalation Policy
                  assigned_to_name: Mary Jane
                  resolved_date: null
                  acknowledged_date: null
                  context_window_start: null
                  context_window_end: null
                  tags: []
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  sla_object:
                    unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    name: Infra SLA
                    is_active: true
                    acknowledge_time: 30
                    resolve_time: 60
                    creation_date: '2022-07-08T12:29:08.545605Z'
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team_priority_object:
                    unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    name: Infra Priority
                    description: This is the description for Infra Priority
                    color: orange
                - summary: ''
                  incident_number: 2
                  creation_date: '2022-07-08T13:14:31.197682Z'
                  status: 1
                  unique_id: GQ5hJLcFwJHTUes6p8V7i8
                  service_object:
                    name: Infra Service
                    creation_date: '2022-07-08T12:31:37.429973Z'
                    summary: ''
                    description: This is the description for Infra Service
                    unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    auto_resolve_timeout: 0
                    created_by: 216bba3d-7268-4a8e-89e9-6
                    team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                    acknowledgement_timeout: 0
                    status: 1
                    escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    collation_time: 2
                    collation: 1
                    under_maintenance: false
                  title: Infra Integration Alert
                  incident_key: EDnsTiArj3nkw43mHnxYGB
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  urgency: 1
                  merged_with: null
                  assigned_to: 507dfda0-a1fd-40e5-943a-e
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  escalation_policy_object:
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    name: Infra Escalation Policy
                  assigned_to_name: Mary Jane
                  resolved_date: null
                  acknowledged_date: null
                  context_window_start: null
                  context_window_end: null
                  tags: []
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  sla_object:
                    unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    name: Infra SLA
                    is_active: true
                    acknowledge_time: 30
                    resolve_time: 60
                    creation_date: '2022-07-08T12:29:08.545605Z'
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team_priority_object:
                    unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    name: Infra Priority
                    description: This is the description for Infra Priority
                    color: orange
                - summary: This is the summary for Infra Incident
                  incident_number: 1
                  creation_date: '2022-07-08T12:32:18.828496Z'
                  status: 1
                  unique_id: U2gGkyJnLQLkX2zQnvkpLW
                  service_object:
                    name: Infra Service
                    creation_date: '2022-07-08T12:31:37.429973Z'
                    summary: ''
                    description: This is the description for Infra Service
                    unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    auto_resolve_timeout: 0
                    created_by: 216bba3d-7268-4a8e-89e9-6
                    team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                    acknowledgement_timeout: 0
                    status: 1
                    escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    collation_time: 2
                    collation: 1
                    under_maintenance: false
                  title: Infra Incident
                  incident_key: HEnzgn3H9DidvJrzTqETd6
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  urgency: 1
                  merged_with: null
                  assigned_to: 507dfda0-a1fd-40e5-943a-e
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  escalation_policy_object:
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    name: Infra Escalation Policy
                  assigned_to_name: Mary Jane
                  resolved_date: null
                  acknowledged_date: null
                  context_window_start: null
                  context_window_end: null
                  tags: []
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  sla_object:
                    unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                    name: Infra SLA
                    is_active: true
                    acknowledge_time: 30
                    resolve_time: 60
                    creation_date: '2022-07-08T12:29:08.545605Z'
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team_priority_object:
                    unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                    name: Infra Priority
                    description: This is the description for Infra Priority
                    color: orange
        '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/incidents/{incident_number}/':
    parameters:
      - name: incident_number
        in: path
        description: incident_number of the Incident object
        schema:
          type: string
        required: true
    get:
      tags:
        - Incidents
      summary: Retrieve the Incident object
      description: Retrieve the specified Incident object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                summary: ''
                incident_number: 3
                creation_date: '2022-07-08T13:21:25.846623Z'
                status: 1
                unique_id: uJVWfdAeoPDm3pk2gG2URn
                service_object:
                  name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  collation_time: 2
                  collation: 1
                  under_maintenance: false
                title: Production Incident
                incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                urgency: 1
                merged_with: null
                assigned_to: 507dfda0-a1fd-40e5-943a-e
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                escalation_policy_object:
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  name: Infra Escalation Policy
                assigned_to_name: Mary Jane
                resolved_date: null
                acknowledged_date: null
                context_window_start: null
                context_window_end: null
                tags: []
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                sla_object:
                  unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                team_priority_object:
                  unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  name: Infra Priority
                  description: This is the description for Infra Priority
                  color: orange
            application/xml:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                summary: ''
                incident_number: 3
                creation_date: '2022-07-08T13:21:25.846623Z'
                status: 1
                unique_id: uJVWfdAeoPDm3pk2gG2URn
                service_object:
                  name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  collation_time: 2
                  collation: 1
                  under_maintenance: false
                title: Production Incident
                incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                urgency: 1
                merged_with: null
                assigned_to: 507dfda0-a1fd-40e5-943a-e
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                escalation_policy_object:
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  name: Infra Escalation Policy
                assigned_to_name: Mary Jane
                resolved_date: null
                acknowledged_date: null
                context_window_start: null
                context_window_end: null
                tags: []
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                sla_object:
                  unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                team_priority_object:
                  unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  name: Infra Priority
                  description: This is the description for Infra Priority
                  color: orange
        '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:
        - Incidents
      summary: Update the Incident object
      description: Updates the specified Incident 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 Incident object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentPayload'
            example:
              title: Modified Production Incident
              service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
          application/xml:
            schema:
              $ref: '#/components/schemas/IncidentPayload'
            example:
              title: Modified Production Incident
              service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                summary: ''
                incident_number: 3
                creation_date: '2022-07-08T13:21:25.846623Z'
                status: 1
                unique_id: uJVWfdAeoPDm3pk2gG2URn
                service_object:
                  name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  collation_time: 2
                  collation: 1
                  under_maintenance: false
                title: Modified Production Incident
                incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                urgency: 1
                merged_with: null
                assigned_to: 507dfda0-a1fd-40e5-943a-e
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                escalation_policy_object:
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  name: Infra Escalation Policy
                assigned_to_name: Mary Jane
                resolved_date: null
                acknowledged_date: null
                context_window_start: null
                context_window_end: null
                tags: []
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                sla_object:
                  unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                team_priority_object:
                  unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  name: Infra Priority
                  description: This is the description for Infra Priority
                  color: orange
            application/xml:
              schema:
                $ref: '#/components/schemas/Incident'
              example:
                summary: ''
                incident_number: 3
                creation_date: '2022-07-08T13:21:25.846623Z'
                status: 1
                unique_id: uJVWfdAeoPDm3pk2gG2URn
                service_object:
                  name: Infra Service
                  creation_date: '2022-07-08T12:31:37.429973Z'
                  summary: ''
                  description: This is the description for Infra Service
                  unique_id: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  auto_resolve_timeout: 0
                  created_by: 216bba3d-7268-4a8e-89e9-6
                  team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  task_template: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  acknowledgement_timeout: 0
                  status: 1
                  escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  collation_time: 2
                  collation: 1
                  under_maintenance: false
                title: Modified Production Incident
                incident_key: Q5NmEbsgc4ZjLknsw97VZJ
                service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                urgency: 1
                merged_with: null
                assigned_to: 507dfda0-a1fd-40e5-943a-e
                escalation_policy: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                escalation_policy_object:
                  unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                  name: Infra Escalation Policy
                assigned_to_name: Mary Jane
                resolved_date: null
                acknowledged_date: null
                context_window_start: null
                context_window_end: null
                tags: []
                sla: b3c6af23-2b9e-414e-9706-bbf3af76828c
                sla_object:
                  unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                team_priority: 6d100d52-998b-41c8-8928-a7e3aa68e329
                team_priority_object:
                  unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  name: Infra Priority
                  description: This is the description for Infra Priority
                  color: orange
        '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/account/teams/{}/roles/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Incident Roles
      summary: Create the Incident Role object
      description: Create the Incident Role object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Incident Role object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IRPayload'
            example:
              title: Infra Incident Role
              rank: 1
          application/xml:
            schema:
              $ref: '#/components/schemas/IRPayload'
            example:
              title: Infra Incident Role
              rank: 1
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentRolePostPut'
              example:
                unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                title: Infra Incident Role
                description: ''
                creation_date: '2022-07-08T13:37:07.405199Z'
                rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentRolePostPut'
              example:
                unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                title: Infra Incident Role
                description: ''
                creation_date: '2022-07-08T13:37:07.405199Z'
                rank: 1
        '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:
        - Incident Roles
      summary: List all Incident Role objects
      description: 'Returns a list of Incident Role objects. The Incident Role objects are sorted by creation_date, with the most recent Incident Role object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentRoleGet'
              example:
                - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  title: Incident Commander
                  description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                  creation_date: '2022-07-08T10:41:36.623257Z'
                  rank: 1
                - unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  title: Infra Incident Role
                  description: ''
                  creation_date: '2022-07-08T13:37:07.405199Z'
                  rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentRoleGet'
              example:
                - unique_id: 89752b4a-43df-401d-9dc0-a446690a7a0e
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  title: Incident Commander
                  description: 'The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.'
                  creation_date: '2022-07-08T10:41:36.623257Z'
                  rank: 1
                - unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  title: Infra Incident Role
                  description: ''
                  creation_date: '2022-07-08T13:37:07.405199Z'
                  rank: 1
        '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/account/teams/{team_id}/roles/{incident_role_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: incident_role_id
        in: path
        description: unique_id of the Incident Role object
        schema:
          type: string
        required: true
    get:
      tags:
        - Incident Roles
      summary: Retrieve the Incident Role object
      description: Retrieve the specified Incident Role object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentRoleGet'
              example:
                unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                title: Infra Incident Role
                description: ''
                creation_date: '2022-07-08T13:37:07.405199Z'
                rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentRoleGet'
              example:
                unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                title: Infra Incident Role
                description: ''
                creation_date: '2022-07-08T13:37:07.405199Z'
                rank: 1
        '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:
        - Incident Roles
      summary: Update the Incident Role object
      description: Updates the specified Incident Role 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 Incident Role object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IRPayload'
            example:
              title: Modified Infra Incident Role
          application/xml:
            schema:
              $ref: '#/components/schemas/IRPayload'
            example:
              title: Modified Infra Incident Role
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentRolePostPut'
              example:
                unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                title: Modified Infra Incident Role
                description: ''
                creation_date: '2022-07-08T13:37:07.405199Z'
                rank: 1
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentRolePostPut'
              example:
                unique_id: 33994f75-c917-46c4-a367-e05ad7f893a9
                title: Modified Infra Incident Role
                description: ''
                creation_date: '2022-07-08T13:37:07.405199Z'
                rank: 1
        '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.
    delete:
      tags:
        - Incident Roles
      summary: Delete the Incident Role object
      description: Delete the specified Incident Role object permanently.
      responses:
        '204':
          description: Success
        '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/incidents/{incident_number}/note/':
    parameters:
      - name: incident_number
        in: path
        description: incident_number of the Incident object
        schema:
          type: string
        required: true
    post:
      tags:
        - Incident Notes
      summary: Create the Incident Note object
      description: Create the Incident Note object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Incident Note object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentNotePayload'
            example:
              note: This is new Infra Incident Note data
          application/xml:
            schema:
              $ref: '#/components/schemas/IncidentNotePayload'
            example:
              note: This is new Infra Incident Note data
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                unique_id: KCfA6tgiQTQrQVYuLVx2AK
                incident: 1
                user: 216bba3d-7268-4a8e-89e9-6
                note: This is new Infra Incident Note data
                user_name: Anshul Rajput
                creation_date: '2022-07-08T13:50:37.581269Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                unique_id: KCfA6tgiQTQrQVYuLVx2AK
                incident: 1
                user: 216bba3d-7268-4a8e-89e9-6
                note: This is new Infra Incident Note data
                user_name: Anshul Rajput
                creation_date: '2022-07-08T13:50:37.581269Z'
        '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.
    get:
      tags:
        - Incident Notes
      summary: List all Incident Note objects
      description: 'Returns a list of Incident Note objects. The Incident Note objects are sorted by creation_date, with the most recent Incident Note object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                - unique_id: sEeKz4WibyGzvLfoRUoMCk
                  incident: 1
                  user: 216bba3d-7268-4a8e-89e9-6
                  note: This is Infra Incident Note data
                  user_name: Anshul Rajput
                  creation_date: '2022-07-08T12:33:02.593351Z'
                - unique_id: KCfA6tgiQTQrQVYuLVx2AK
                  incident: 1
                  user: 216bba3d-7268-4a8e-89e9-6
                  note: This is new Infra Incident Note data
                  user_name: Anshul Rajput
                  creation_date: '2022-07-08T13:50:37.581269Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                - unique_id: sEeKz4WibyGzvLfoRUoMCk
                  incident: 1
                  user: 216bba3d-7268-4a8e-89e9-6
                  note: This is Infra Incident Note data
                  user_name: Anshul Rajput
                  creation_date: '2022-07-08T12:33:02.593351Z'
                - unique_id: KCfA6tgiQTQrQVYuLVx2AK
                  incident: 1
                  user: 216bba3d-7268-4a8e-89e9-6
                  note: This is new Infra Incident Note data
                  user_name: Anshul Rajput
                  creation_date: '2022-07-08T13:50:37.581269Z'
        '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/incidents/{incident_number}/note/{note_unique_id}':
    parameters:
      - name: incident_number
        in: path
        description: incident_number of the Incident object
        schema:
          type: string
        required: true
      - name: note_unique_id
        in: path
        description: unique_id of the Incident Note object
        schema:
          type: string
        required: true
    get:
      tags:
        - Incident Notes
      summary: Retrieve the Incident Note object
      description: Retrieve the specified Incident Note object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                unique_id: KCfA6tgiQTQrQVYuLVx2AK
                incident: 1
                user: 216bba3d-7268-4a8e-89e9-6
                note: This is new Infra Incident Note data
                user_name: Anshul Rajput
                creation_date: '2022-07-08T13:50:37.581269Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                unique_id: KCfA6tgiQTQrQVYuLVx2AK
                incident: 1
                user: 216bba3d-7268-4a8e-89e9-6
                note: This is new Infra Incident Note data
                user_name: Anshul Rajput
                creation_date: '2022-07-08T13:50:37.581269Z'
        '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:
        - Incident Notes
      summary: Update the Incident Note object
      description: Updates the specified Incident Note object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
      requestBody:
        description: Incident Note update payload
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentNotePayload'
            example:
              note: This is modified Infra Incident Note data
          application/xml:
            schema:
              $ref: '#/components/schemas/IncidentNotePayload'
            example:
              note: This is modified Infra Incident Note data
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                unique_id: KCfA6tgiQTQrQVYuLVx2AK
                incident: 1
                user: 216bba3d-7268-4a8e-89e9-6
                note: This is modified Infra Incident Note data
                user_name: Anshul Rajput
                creation_date: '2022-07-08T13:50:37.581269Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentNote'
              example:
                unique_id: KCfA6tgiQTQrQVYuLVx2AK
                incident: 1
                user: 216bba3d-7268-4a8e-89e9-6
                note: This is modified Infra Incident Note data
                user_name: Anshul Rajput
                creation_date: '2022-07-08T13:50:37.581269Z'
        '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.
    delete:
      tags:
        - Incident Notes
      summary: Delete the Incident Note object
      description: Delete the specified Incident Note object permanently.
      responses:
        '204':
          description: Success
        '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/incidents/{incident_number}/tags/':
    parameters:
      - name: incident_number
        in: path
        description: incident_number of the Incident object
        schema:
          type: string
        required: true
    post:
      tags:
        - Incident Tags
      summary: Create the Incident Tag object
      description: Create the Incident Tag object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Incident Tag object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentTagPayload'
            example:
              team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
          application/xml:
            schema:
              $ref: '#/components/schemas/IncidentTagPayload'
            example:
              team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentTag'
              example:
                unique_id: 6dba6488-d330-4cbc-bd1b-5a6d912464f8
                incident: 27
                team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                name: Team 1 Tag 1
                color: magenta
                tag_id: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                creation_date: '2022-12-22T08:33:22.130596Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentTag'
              example:
                unique_id: 6dba6488-d330-4cbc-bd1b-5a6d912464f8
                incident: 27
                team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                name: Team 1 Tag 1
                color: magenta
                tag_id: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                creation_date: '2022-12-22T08:33:22.130596Z'
        '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.
    get:
      tags:
        - Incident Tags
      summary: List all Incident Tag objects
      description: 'Returns a list of Incident Tag objects. The Incident Tag objects are sorted by creation_date, with the most recent Incident Note object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentTag'
              example:
                - unique_id: 749d39aa-59c5-4719-b300-0c04ad677af5
                  incident: 27
                  creation_date: '2022-12-22T08:23:10.905923Z'
                  name: Team 1 Tag 4
                  color: cyan
                  tag_id: 2778cd89-fa68-42bd-8bac-2cdcc569b8bb
                  team_tag: 2778cd89-fa68-42bd-8bac-2cdcc569b8bb
                - unique_id: 6dba6488-d330-4cbc-bd1b-5a6d912464f8
                  incident: 27
                  creation_date: '2022-12-22T08:33:22.130596Z'
                  name: Team 1 Tag 1
                  color: magenta
                  tag_id: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                  team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentTag'
              example:
                - unique_id: 749d39aa-59c5-4719-b300-0c04ad677af5
                  incident: 27
                  creation_date: '2022-12-22T08:23:10.905923Z'
                  name: Team 1 Tag 4
                  color: cyan
                  tag_id: 2778cd89-fa68-42bd-8bac-2cdcc569b8bb
                  team_tag: 2778cd89-fa68-42bd-8bac-2cdcc569b8bb
                - unique_id: 6dba6488-d330-4cbc-bd1b-5a6d912464f8
                  incident: 27
                  creation_date: '2022-12-22T08:33:22.130596Z'
                  name: Team 1 Tag 1
                  color: magenta
                  tag_id: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                  team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
        '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/incidents/{incident_number}/tags/{tag_unique_id}':
    parameters:
      - name: incident_number
        in: path
        description: incident_number of the Incident object
        schema:
          type: string
        required: true
      - name: tag_unique_id
        in: path
        description: unique_id of the Incident Tag object
        schema:
          type: string
        required: true
    get:
      tags:
        - Incident Tags
      summary: Retrieve the Incident Tag object
      description: Retrieve the specified Incident Tag object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentTag'
              example:
                unique_id: 6dba6488-d330-4cbc-bd1b-5a6d912464f8
                incident: 27
                creation_date: '2022-12-22T08:33:22.130596Z'
                name: Team 1 Tag 1
                color: magenta
                tag_id: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentTag'
              example:
                unique_id: 6dba6488-d330-4cbc-bd1b-5a6d912464f8
                incident: 27
                creation_date: '2022-12-22T08:33:22.130596Z'
                name: Team 1 Tag 1
                color: magenta
                tag_id: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
                team_tag: bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4
        '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.
    delete:
      tags:
        - Incident Tags
      summary: Delete the Incident Tag object
      description: Delete the specified Incident Tag object permanently.
      responses:
        '204':
          description: Success
        '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/events/{integration_key}/':
    parameters:
      - name: integration_key
        in: path
        description: integration_key of the Integration object
        schema:
          type: string
        required: true
    post:
      tags:
        - Events
      summary: Create the Event object
      description: Create the Event object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Event object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventPayload'
            example:
              alert_type: info
              message: This is info alert
              summary: This is the incident summary
              entity_id: 12345
              payload:
                status: ACME Payments are failing
                severity: '1'
                project: kubeprod
              urls:
                - link_url: 'https://www.example.com/alerts/12345/'
                  link_text: Alert URL
          application/xml:
            schema:
              $ref: '#/components/schemas/EventPayload'
            example:
              alert_type: info
              message: This is info alert
              summary: This is the incident summary
              entity_id: 12345
              payload:
                status: ACME Payments are failing
                severity: '1'
                project: kubeprod
              urls:
                - link_url: 'https://www.example.com/alerts/1234/'
                  link_text: Alert URL
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Event'
              example:
                integration_object:
                  name: API
                  creation_date: '2022-11-14T14:08:56.089450Z'
                  summary: Zenduty API integration
                  unique_id: 828361de-681f-4f00-9420-07a185a83e46
                  service: 1587103f-6ed2-4eac-8a56-866128df036f
                  team: db61f7ed-ba78-4536-9b2d-256b135a731d
                  integration_key: 082a1af8-064c-40a2-a99c-bc9c27d2042d
                  is_enabled: true
                  integration_type: 0
                summary: This is the incident summary
                incident: null
                creation_date: '2023-04-05T12:40:35.405170Z'
                message: This is info alert
                integration: 828361de-681f-4f00-9420-07a185a83e46
                suppressed: false
                entity_id: '12345'
                payload: {}
                alert_type: '0'
                unique_id: hD5dKNDyFDVADEYdrLViM7
                images: []
                urls:
                  - unique_id: b7cc93a2-6f64-46c6-bed7-2dd0504917f6
                    link_url: 'https://www.example.com/alerts/1234/'
                    link_text: Alert URL
                notes: []
                incident_created: false
            application/xml:
              schema:
                $ref: '#/components/schemas/Event'
              example:
                integration_object:
                  name: API
                  creation_date: '2022-11-14T14:08:56.089450Z'
                  summary: Zenduty API integration
                  unique_id: 828361de-681f-4f00-9420-07a185a83e46
                  service: 1587103f-6ed2-4eac-8a56-866128df036f
                  team: db61f7ed-ba78-4536-9b2d-256b135a731d
                  integration_key: 082a1af8-064c-40a2-a99c-bc9c27d2042d
                  is_enabled: true
                  integration_type: 0
                summary: This is the incident summary
                incident: null
                creation_date: '2023-04-05T12:40:35.405170Z'
                message: This is info alert
                integration: 828361de-681f-4f00-9420-07a185a83e46
                suppressed: false
                entity_id: '12345'
                payload: {}
                alert_type: '0'
                unique_id: hD5dKNDyFDVADEYdrLViM7
                images: []
                urls:
                  - unique_id: b7cc93a2-6f64-46c6-bed7-2dd0504917f6
                    link_url: 'https://www.example.com/alerts/1234/'
                    link_text: Alert URL
                notes: []
                incident_created: false
        '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/incidents/{incident_number}/alerts/':
    parameters:
      - name: incident_number
        in: path
        description: incident_number of the Incident object
        schema:
          type: string
        required: true
    get:
      tags:
        - Incident Alerts
      summary: List all Incident Alert objects
      description: 'Returns a list of Incident Alert objects. The Incident Alert objects are sorted by creation_date, with the most recent Incident Alert object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentAlert'
              example:
                - integration_object:
                    name: Modified Infra custom Integration
                    creation_date: '2022-07-08T12:52:22.906327Z'
                    summary: This is the summary for Infra custom Integration
                    unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                    is_enabled: true
                    integration_type: 0
                  summary: ''
                  incident: 2
                  creation_date: '2022-07-08T13:14:31.300448Z'
                  message: Infra Integration Alert
                  integration: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  suppressed: false
                  entity_id: de8cf7fc-08ee-4966-b8d3-b6b631da
                  alert_type: '3'
                  unique_id: xc6qbUftpzkQ28f2MxpRxh
                  images: []
                  urls: []
                  notes: []
            application/xml:
              schema:
                $ref: '#/components/schemas/IncidentAlert'
              example:
                - integration_object:
                    name: Modified Infra custom Integration
                    creation_date: '2022-07-08T12:52:22.906327Z'
                    summary: This is the summary for Infra custom Integration
                    unique_id: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                    team: 61010821-08aa-4098-94f8-f88f1990b54a
                    integration_key: 5f306dae-b327-4ba9-8f3a-ab4cffd57645
                    is_enabled: true
                    integration_type: 0
                  summary: ''
                  incident: 2
                  creation_date: '2022-07-08T13:14:31.300448Z'
                  message: Infra Integration Alert
                  integration: 72da1133-a471-4e70-95f3-ce3a5650e9fd
                  suppressed: false
                  entity_id: de8cf7fc-08ee-4966-b8d3-b6b631da
                  alert_type: '3'
                  unique_id: xc6qbUftpzkQ28f2MxpRxh
                  images: []
                  urls: []
                  notes: []
        '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/account/teams/{}/tags/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Tags
      summary: Create the Tag object
      description: Create the Tag object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Tag object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagPayload'
            example:
              name: New Infra Tag
              color: red
          application/xml:
            schema:
              $ref: '#/components/schemas/TagPayload'
            example:
              name: New Infra Tag
              color: red
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagPostPut'
              example:
                unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                name: New Infra Tag
                creation_date: '2022-07-08T14:11:20.697785Z'
                color: red
                team: 3674
            application/xml:
              schema:
                $ref: '#/components/schemas/TagPostPut'
              example:
                unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                name: New Infra Tag
                creation_date: '2022-07-08T14:11:20.697785Z'
                color: red
                team: 3674
        '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:
        - Tags
      summary: List all Tag objects
      description: 'Returns a list of Tag objects. The Tag objects are sorted by creation_date, with the most recent Tag object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagGet'
              example:
                - unique_id: b89de69e-3f7b-4425-a19e-9a56b1e9dbf4
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: Infra Tag
                  creation_date: '2022-07-08T12:29:58.621021Z'
                  color: volcano
                - unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: New Infra Tag
                  creation_date: '2022-07-08T14:11:20.697785Z'
                  color: red
            application/xml:
              schema:
                $ref: '#/components/schemas/TagGet'
              example:
                - unique_id: b89de69e-3f7b-4425-a19e-9a56b1e9dbf4
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: Infra Tag
                  creation_date: '2022-07-08T12:29:58.621021Z'
                  color: volcano
                - unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: New Infra Tag
                  creation_date: '2022-07-08T14:11:20.697785Z'
                  color: red
        '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/account/teams/{team_id}/tags/{tag_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: tag_id
        in: path
        description: unique_id of the Tag object
        schema:
          type: string
        required: true
    get:
      tags:
        - Tags
      summary: Retrieve the Tag object
      description: Retrieve the specified Tag object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagGet'
              example:
                unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                name: New Infra Tag
                creation_date: '2022-07-08T14:11:20.697785Z'
                color: red
            application/xml:
              schema:
                $ref: '#/components/schemas/TagGet'
              example:
                unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                name: New Infra Tag
                creation_date: '2022-07-08T14:11:20.697785Z'
                color: red
        '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:
        - Tags
      summary: Update the Tag object
      description: Updates the specified Tag 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 Tag object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagPayload'
            example:
              name: Modified Infra Tag
              color: orange
          application/xml:
            schema:
              $ref: '#/components/schemas/TagPayload'
            example:
              name: Modified Infra Tag
              color: orange
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagPostPut'
              example:
                unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                name: Modified Infra Tag
                creation_date: '2022-07-08T14:11:20.697785Z'
                color: orange
                team: 3674
            application/xml:
              schema:
                $ref: '#/components/schemas/TagPostPut'
              example:
                unique_id: fbdd8538-8651-4684-bb5e-7cc4b0c7528d
                name: Modified Infra Tag
                creation_date: '2022-07-08T14:11:20.697785Z'
                color: orange
                team: 3674
        '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.
    delete:
      tags:
        - Tags
      summary: Delete the Tag object
      description: Delete the specified Tag object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/task_templates/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Task Templates
      summary: Create the Task Template object
      description: Create the Template object object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Task Template object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TTPayload'
            example:
              name: New Infra Task Template
              summary: This is the summary for New Infra Task Template
          application/xml:
            schema:
              $ref: '#/components/schemas/TTPayload'
            example:
              name: New Infra Task Template
              summary: This is the summary for New Infra Task Template
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskTemplatePostPut'
              example:
                unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                name: New Infra Task Template
                creation_date: '2022-07-08T14:22:08.597518Z'
                summary: This is the summary for New Infra Task Template
                due_immediately: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/TaskTemplatePostPut'
              example:
                unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                name: New Infra Task Template
                creation_date: '2022-07-08T14:22:08.597518Z'
                summary: This is the summary for New Infra Task Template
                due_immediately: 0
        '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:
        - Task Templates
      summary: List all Task Template objects
      description: 'Returns a list of Task Templat objects. The Task Templat objects are sorted by creation_date, with the most recent Task Templat object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskTemplateGet'
              example:
                - unique_id: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: Infra Task Template
                  creation_date: '2022-07-08T12:26:47.700733Z'
                  summary: This is the summary for Infra Task Template
                  due_immediately: 0
                - unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: New Infra Task Template
                  creation_date: '2022-07-08T14:22:08.597518Z'
                  summary: This is the summary for New Infra Task Template
                  due_immediately: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/TaskTemplateGet'
              example:
                - unique_id: 8d2640ca-c6ef-45f0-be5f-61dedcf85032
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: Infra Task Template
                  creation_date: '2022-07-08T12:26:47.700733Z'
                  summary: This is the summary for Infra Task Template
                  due_immediately: 0
                - unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  name: New Infra Task Template
                  creation_date: '2022-07-08T14:22:08.597518Z'
                  summary: This is the summary for New Infra Task Template
                  due_immediately: 0
        '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/account/teams/{team_id}/task_templates/{task_template_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: task_template_id
        in: path
        description: unique_id of the Task Template object
        schema:
          type: string
        required: true
    get:
      tags:
        - Task Templates
      summary: Retrieve the Task Template object
      description: Retrieve the specified Task Template object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskTemplateGet'
              example:
                unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                name: New Infra Task Template
                creation_date: '2022-07-08T14:22:08.597518Z'
                summary: This is the summary for New Infra Task Template
                due_immediately: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/TaskTemplateGet'
              example:
                unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                name: New Infra Task Template
                creation_date: '2022-07-08T14:22:08.597518Z'
                summary: This is the summary for New Infra Task Template
                due_immediately: 0
        '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:
        - Task Templates
      summary: Update the Task Template object
      requestBody:
        description: Request body parameters to update the Task Template object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TTPayload'
            example:
              name: Modified Infra Task Template
              summary: This is the summary for Modified Infra Task Template
          application/xml:
            schema:
              $ref: '#/components/schemas/TTPayload'
            example:
              name: Modified Infra Task Template
              summary: This is the summary for Modified Infra Task Template
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskTemplatePostPut'
              example:
                unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                name: Modified Infra Task Template
                creation_date: '2022-07-08T14:22:08.597518Z'
                summary: This is the summary for Modified Infra Task Template
                due_immediately: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/TaskTemplatePostPut'
              example:
                unique_id: 94d836f1-4fda-4124-a339-ba7975a15559
                name: Modified Infra Task Template
                creation_date: '2022-07-08T14:22:08.597518Z'
                summary: This is the summary for Modified Infra Task Template
                due_immediately: 0
        '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.
    delete:
      tags:
        - Task Templates
      summary: Delete the Task Template object
      description: Delete the specified Task Template object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/priority/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Priorities
      summary: Create the Priority object
      description: Create the Priority object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Priority object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PriorityPayload'
            example:
              name: New Infra Priority
          application/xml:
            schema:
              $ref: '#/components/schemas/PriorityPayload'
            example:
              name: New Infra Priority
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriorityPostPut'
              example:
                unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                name: New Infra Priority
                description: ''
                creation_date: '2022-07-08T14:33:05.609863Z'
                color: ''
                team: 3674
            application/xml:
              schema:
                $ref: '#/components/schemas/PriorityPostPut'
              example:
                unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                name: New Infra Priority
                description: ''
                creation_date: '2022-07-08T14:33:05.609863Z'
                color: ''
                team: 3674
        '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:
        - Priorities
      summary: List all Priority objects
      description: 'Returns a list of Priority objects. The Priority objects are sorted by creation_date, with the most recent Priority object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriorityGet'
              example:
                - unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  description: This is the description for Infra Priority
                  name: Infra Priority
                  creation_date: '2022-07-08T12:29:45.895959Z'
                  color: orange
                - unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  description: ''
                  name: New Infra Priority
                  creation_date: '2022-07-08T14:33:05.609863Z'
                  color: ''
            application/xml:
              schema:
                $ref: '#/components/schemas/PriorityGet'
              example:
                - unique_id: 6d100d52-998b-41c8-8928-a7e3aa68e329
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  description: This is the description for Infra Priority
                  name: Infra Priority
                  creation_date: '2022-07-08T12:29:45.895959Z'
                  color: orange
                - unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                  team: 61010821-08aa-4098-94f8-f88f1990b54a
                  description: ''
                  name: New Infra Priority
                  creation_date: '2022-07-08T14:33:05.609863Z'
                  color: ''
        '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/account/teams/{team_id}/priority/{priority_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: priority_id
        in: path
        description: unique_id of the Priority object
        schema:
          type: string
        required: true
    get:
      tags:
        - Priorities
      summary: Retrieve the Priority object
      description: Retrieve the specified Priority object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriorityGet'
              example:
                unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                description: ''
                name: New Infra Priority
                creation_date: '2022-07-08T14:33:05.609863Z'
                color: ''
            application/xml:
              schema:
                $ref: '#/components/schemas/PriorityGet'
              example:
                unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                team: 61010821-08aa-4098-94f8-f88f1990b54a
                description: ''
                name: New Infra Priority
                creation_date: '2022-07-08T14:33:05.609863Z'
                color: ''
        '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:
        - Priorities
      summary: Update the Priority object
      description: Updates the specified Priority 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 Priority object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PriorityPayload'
            example:
              name: Modified Infra Priority
          application/xml:
            schema:
              $ref: '#/components/schemas/PriorityPayload'
            example:
              name: Modified Infra Priority
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriorityPostPut'
              example:
                unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                name: Modified Infra Priority
                description: ''
                creation_date: '2022-07-08T14:33:05.609863Z'
                color: ''
                team: 3674
            application/xml:
              schema:
                $ref: '#/components/schemas/PriorityPostPut'
              example:
                unique_id: 88519afe-3409-4f96-b9de-4464908f6e88
                name: Modified Infra Priority
                description: ''
                creation_date: '2022-07-08T14:33:05.609863Z'
                color: ''
                team: 3674
        '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.
    delete:
      tags:
        - Priorities
      summary: Delete the Priority object
      description: Delete the specified Priority object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/sla/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - SLA
      summary: Create the SLA object
      description: Create the SLA object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the SLA object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SLAPayload'
            example:
              name: New Infra SLA
              escalations: []
          application/xml:
            schema:
              $ref: '#/components/schemas/SLAPayload'
            example:
              name: New Infra SLA
              escalations: []
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SLAPostPut'
              example:
                escalations: []
                unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                name: New Infra SLA
                description: ''
                is_active: true
                conditions: '{}'
                acknowledge_time: null
                resolve_time: null
                team: 3674
            application/xml:
              schema:
                $ref: '#/components/schemas/SLAPostPut'
              example:
                escalations: []
                unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                name: New Infra SLA
                description: ''
                is_active: true
                conditions: '{}'
                acknowledge_time: null
                resolve_time: null
                team: 3674
        '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:
        - SLA
      summary: List all SLA objects
      description: Returns a list of SLA objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SLAGet'
              example:
                - unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                - unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                  name: New Infra SLA
                  is_active: true
                  acknowledge_time: null
                  resolve_time: null
                  creation_date: '2022-07-08T14:45:21.096085Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/SLAGet'
              example:
                - unique_id: b3c6af23-2b9e-414e-9706-bbf3af76828c
                  name: Infra SLA
                  is_active: true
                  acknowledge_time: 30
                  resolve_time: 60
                  creation_date: '2022-07-08T12:29:08.545605Z'
                - unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                  name: New Infra SLA
                  is_active: true
                  acknowledge_time: null
                  resolve_time: null
                  creation_date: '2022-07-08T14:45:21.096085Z'
        '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/account/teams/{team_id}/sla/{sla_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: sla_id
        in: path
        description: unique_id of the SLA object
        schema:
          type: string
        required: true
    get:
      tags:
        - SLA
      summary: Retrieve the SLA object
      description: Retrieve the specified SLA object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SLAGet'
              example:
                escalations: []
                unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                name: New Infra SLA
                description: ''
                is_active: true
                conditions: '{}'
                acknowledge_time: null
                resolve_time: null
                team: 3674
            application/xml:
              schema:
                $ref: '#/components/schemas/SLAGet'
              example:
                escalations: []
                unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                name: New Infra SLA
                description: ''
                is_active: true
                conditions: '{}'
                acknowledge_time: null
                resolve_time: null
                team: 3674
        '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:
        - SLA
      summary: Update the SLA object
      description: Updates the specified SLA 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 SLA object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SLAPayload'
            example:
              name: Modified Infra SLA
              escalations: []
          application/xml:
            schema:
              $ref: '#/components/schemas/SLAPayload'
            example:
              name: Modified Infra SLA
              escalations: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SLAPostPut'
              example:
                escalations: []
                unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                name: Modified Infra SLA
                description: ''
                is_active: true
                conditions: '{}'
                acknowledge_time: null
                resolve_time: null
                team: 3674
            application/xml:
              schema:
                $ref: '#/components/schemas/SLAPostPut'
              example:
                escalations: []
                unique_id: 010bc17d-f688-403d-b762-f039fb6f5ad9
                name: Modified Infra SLA
                description: ''
                is_active: true
                conditions: '{}'
                acknowledge_time: null
                resolve_time: null
                team: 3674
        '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.
    delete:
      tags:
        - SLA
      summary: Delete the SLA object
      description: Delete the specified SLA object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/maintenance/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Team Maintenance Mode
      summary: Create the Team Maintenance Mode object
      description: Create the Team Maintenance Mode object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Team Maintenance Mode object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TMMPayload'
            example:
              name: New Infra Team Maintenance
              services:
                - unique_id: 9b5a0301-3325-49b6-b54c-71d79a50c82d
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
              start_time: '2022-07-08T18:06:00Z'
              end_time: '2022-07-15T18:06:00Z'
          application/xml:
            schema:
              $ref: '#/components/schemas/TMMPayload'
            example:
              name: New Infra Team Maintenance
              services:
                - unique_id: 9b5a0301-3325-49b6-b54c-71d79a50c82d
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
              start_time: '2022-07-08T18:06:00Z'
              end_time: '2022-07-15T18:06:00Z'
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                start_time: '2022-07-08T18:06:00Z'
                end_time: '2022-07-15T18:06:00Z'
                repeat_interval: 0
                services:
                  - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                creation_date: '2022-07-08T14:55:46.681634Z'
                name: New Infra Team Maintenance
                time_zone: UTC
                repeat_until: null
            application/xml:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                start_time: '2022-07-08T18:06:00Z'
                end_time: '2022-07-15T18:06:00Z'
                repeat_interval: 0
                services:
                  - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                creation_date: '2022-07-08T14:55:46.681634Z'
                name: New Infra Team Maintenance
                time_zone: UTC
                repeat_until: null
        '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:
        - Team Maintenance Mode
      summary: List all Team Maintenance Mode objects
      description: 'Returns a list of Team Maintenance Mode objects. The Team Maintenance Mode objects are sorted by creation_date, with the most recent Team Maintenance Mode object appearing last.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                - unique_id: de38ec19-283f-4501-90df-1e7eb74191cb
                  start_time: '2022-07-08T18:06:00Z'
                  end_time: '2022-07-15T18:06:00Z'
                  repeat_interval: 4
                  services:
                    - unique_id: 9b5a0301-3325-49b6-b54c-71d79a50c82d
                      service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  creation_date: '2022-07-08T12:36:43.932588Z'
                  name: Infra Team Maintenance
                  time_zone: UTC
                  repeat_until: '2022-07-12T12:36:42.137000Z'
                - unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                  start_time: '2022-07-08T18:06:00Z'
                  end_time: '2022-07-15T18:06:00Z'
                  repeat_interval: 0
                  services:
                    - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                      service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  creation_date: '2022-07-08T14:55:46.681634Z'
                  name: New Infra Team Maintenance
                  time_zone: UTC
                  repeat_until: null
            application/xml:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                - unique_id: de38ec19-283f-4501-90df-1e7eb74191cb
                  start_time: '2022-07-08T18:06:00Z'
                  end_time: '2022-07-15T18:06:00Z'
                  repeat_interval: 4
                  services:
                    - unique_id: 9b5a0301-3325-49b6-b54c-71d79a50c82d
                      service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  creation_date: '2022-07-08T12:36:43.932588Z'
                  name: Infra Team Maintenance
                  time_zone: UTC
                  repeat_until: '2022-07-12T12:36:42.137000Z'
                - unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                  start_time: '2022-07-08T18:06:00Z'
                  end_time: '2022-07-15T18:06:00Z'
                  repeat_interval: 0
                  services:
                    - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                      service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                  creation_date: '2022-07-08T14:55:46.681634Z'
                  name: New Infra Team Maintenance
                  time_zone: UTC
                  repeat_until: null
        '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/account/teams/{team_id}/maintenance/{maintenance_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: maintenance_id
        in: path
        description: unique_id of the Team Maintenance Mode object
        schema:
          type: string
        required: true
    get:
      tags:
        - Team Maintenance Mode
      summary: Retrieve the Team Maintenance Mode object
      description: Retrieve the specified Team Maintenance Mode object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                start_time: '2022-07-08T18:06:00Z'
                end_time: '2022-07-15T18:06:00Z'
                repeat_interval: 0
                services:
                  - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                creation_date: '2022-07-08T14:55:46.681634Z'
                name: New Infra Team Maintenance
                time_zone: UTC
                repeat_until: null
            application/xml:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                start_time: '2022-07-08T18:06:00Z'
                end_time: '2022-07-15T18:06:00Z'
                repeat_interval: 0
                services:
                  - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                creation_date: '2022-07-08T14:55:46.681634Z'
                name: New Infra Team Maintenance
                time_zone: UTC
                repeat_until: null
        '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:
        - Team Maintenance Mode
      summary: Update Team Maintenance Mode object
      description: Updates the specified Team Maintenance Mode 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 Team Maintenance Mode object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TMMPayload'
            example:
              name: Modified Infra Team Maintenance
              services:
                - unique_id: 9b5a0301-3325-49b6-b54c-71d79a50c82d
                  service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
              start_time: '2022-07-08T18:06:00Z'
              end_time: '2022-07-15T18:06:00Z'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                start_time: '2022-07-08T18:06:00Z'
                end_time: '2022-07-15T18:06:00Z'
                repeat_interval: null
                services:
                  - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                creation_date: '2022-07-08T14:55:46.681634Z'
                name: Modified Infra Team Maintenance
                time_zone: null
                repeat_until: null
            application/xml:
              schema:
                $ref: '#/components/schemas/TMM'
              example:
                unique_id: 162055d5-9646-43df-95cb-2ac511bf34ef
                start_time: '2022-07-08T18:06:00Z'
                end_time: '2022-07-15T18:06:00Z'
                repeat_interval: null
                services:
                  - unique_id: 5390bdd2-8e97-44cb-9d48-db32364511b1
                    service: 191f5e2c-515e-4ee0-b501-3a292f8dae2f
                creation_date: '2022-07-08T14:55:46.681634Z'
                name: Modified Infra Team Maintenance
                time_zone: null
                repeat_until: null
        '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.
    delete:
      tags:
        - Team Maintenance Mode
      summary: Delete the Team Maintenance Mode object
      description: Delete the specified Team Maintenance Mode object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{}/postmortem/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
    post:
      tags:
        - Postmortem
      summary: Create the Postmortem object
      description: Create the Postmortem object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Postmortem object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostmortemPayload'
            example:
              author: 85b563c8-18d0-4668-9462-9
              incidents:
                - incident: U2gGkyJnLQLkX2zQnvkpLW
              title: New Infra Postmortem
          application/xml:
            schema:
              $ref: '#/components/schemas/PostmortemPayload'
            example:
              author: 85b563c8-18d0-4668-9462-9
              incidents:
                - incident: U2gGkyJnLQLkX2zQnvkpLW
              title: New Infra Postmortem
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostmortemPostPut'
              example:
                unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                author: 85b563c8-18d0-4668-9462-9
                status: ''
                incidents:
                  - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                    incident: U2gGkyJnLQLkX2zQnvkpLW
                author_name: Vishwa Krishnakumar
                title: New Infra Postmortem
                postmortem_data: ''
                download_status: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/PostmortemPostPut'
              example:
                unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                author: 85b563c8-18d0-4668-9462-9
                status: ''
                incidents:
                  - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                    incident: U2gGkyJnLQLkX2zQnvkpLW
                author_name: Vishwa Krishnakumar
                title: New Infra Postmortem
                postmortem_data: ''
                download_status: 0
        '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:
        - Postmortem
      summary: List all Postmortem objects
      description: Returns a list of Postmortem objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostmortemGet'
              example:
                - unique_id: 4d0726ca-664f-4d07-8005-a9ba2c654cc9
                  author: 85b563c8-18d0-4668-9462-9
                  status: Critical
                  postmortem_data: <p>This is the Infra Postmortem data</p>
                  incidents:
                    - unique_id: d86daf72-a2f2-4d54-adec-19f4380ada48
                      incident:
                        unique_id: U2gGkyJnLQLkX2zQnvkpLW
                        title: Infra Incident
                        incident_number: 1
                  author_name: Vishwa Krishnakumar
                  title: Infra Postmortem
                  download_status: 1
                  amazon_link: 'https://zenduty-dev-report.s3.amazonaws.com/'
                  creation_date: '2022-07-08T12:35:38.234310Z'
                - unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                  author: 85b563c8-18d0-4668-9462-9
                  status: ''
                  postmortem_data: ''
                  incidents:
                    - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                      incident:
                        unique_id: U2gGkyJnLQLkX2zQnvkpLW
                        title: Infra Incident
                        incident_number: 1
                  author_name: Vishwa Krishnakumar
                  title: New Infra Postmortem
                  download_status: 0
                  amazon_link: 'https://zenduty-dev-report.s3.amazonaws.com/'
                  creation_date: '2022-07-08T15:08:01.521494Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/PostmortemGet'
              example:
                - unique_id: 4d0726ca-664f-4d07-8005-a9ba2c654cc9
                  author: 85b563c8-18d0-4668-9462-9
                  status: Critical
                  postmortem_data: <p>This is the Infra Postmortem data</p>
                  incidents:
                    - unique_id: d86daf72-a2f2-4d54-adec-19f4380ada48
                      incident:
                        unique_id: U2gGkyJnLQLkX2zQnvkpLW
                        title: Infra Incident
                        incident_number: 1
                  author_name: Vishwa Krishnakumar
                  title: Infra Postmortem
                  download_status: 1
                  amazon_link: 'https://zenduty-dev-report.s3.amazonaws.com/'
                  creation_date: '2022-07-08T12:35:38.234310Z'
                - unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                  author: 85b563c8-18d0-4668-9462-9
                  status: ''
                  postmortem_data: ''
                  incidents:
                    - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                      incident:
                        unique_id: U2gGkyJnLQLkX2zQnvkpLW
                        title: Infra Incident
                        incident_number: 1
                  author_name: Vishwa Krishnakumar
                  title: New Infra Postmortem
                  download_status: 0
                  amazon_link: 'https://zenduty-dev-report.s3.amazonaws.com/'
                  creation_date: '2022-07-08T15:08:01.521494Z'
        '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.
  '/api/account/teams/{team_id}/postmortem/{postmortem_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: postmortem_id
        in: path
        description: unique_id of the Postmortem object
        schema:
          type: string
        required: true
    get:
      tags:
        - Postmortem
      summary: Retrieve the Postmortem object
      description: Retrieve the specified Postmortem object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostmortemGet'
              example:
                unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                author: 85b563c8-18d0-4668-9462-9
                status: ''
                postmortem_data: ''
                incidents:
                  - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                    incident:
                      unique_id: U2gGkyJnLQLkX2zQnvkpLW
                      title: Infra Incident
                      incident_number: 1
                author_name: Vishwa Krishnakumar
                title: New Infra Postmortem
                download_status: 0
                amazon_link: 'https://zenduty-dev-report.s3.amazonaws.com/'
                creation_date: '2022-07-08T15:08:01.521494Z'
            application/xml:
              schema:
                $ref: '#/components/schemas/PostmortemGet'
              example:
                unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                author: 85b563c8-18d0-4668-9462-9
                status: ''
                postmortem_data: ''
                incidents:
                  - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                    incident:
                      unique_id: U2gGkyJnLQLkX2zQnvkpLW
                      title: Infra Incident
                      incident_number: 1
                author_name: Vishwa Krishnakumar
                title: New Infra Postmortem
                download_status: 0
                amazon_link: 'https://zenduty-dev-report.s3.amazonaws.com/'
                creation_date: '2022-07-08T15:08:01.521494Z'
        '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:
        - Postmortem
      summary: Update the Postmortem data
      description: Updates the specified Postmortem 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 Postmortem object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostmortemPayload'
            example:
              author: 85b563c8-18d0-4668-9462-9
              incidents:
                - incident: U2gGkyJnLQLkX2zQnvkpLW
              title: Modified Infra Postmortem
          application/xml:
            schema:
              $ref: '#/components/schemas/PostmortemPayload'
            example:
              author: 85b563c8-18d0-4668-9462-9
              incidents:
                - incident: U2gGkyJnLQLkX2zQnvkpLW
              title: Modified Infra Postmortem
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostmortemPostPut'
              example:
                unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                author: 85b563c8-18d0-4668-9462-9
                status: null
                incidents:
                  - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                    incident: U2gGkyJnLQLkX2zQnvkpLW
                author_name: Vishwa Krishnakumar
                title: Modified Infra Postmortem
                postmortem_data: null
                download_status: 0
            application/xml:
              schema:
                $ref: '#/components/schemas/PostmortemPostPut'
              example:
                unique_id: f6778c71-eba2-49da-b226-ca27172d7303
                author: 85b563c8-18d0-4668-9462-9
                status: null
                incidents:
                  - unique_id: 80673be0-aa18-4f70-ae92-dec403dfc32e
                    incident: U2gGkyJnLQLkX2zQnvkpLW
                author_name: Vishwa Krishnakumar
                title: Modified Infra Postmortem
                postmortem_data: null
                download_status: 0
        '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.
    delete:
      tags:
        - Postmortem
      summary: Delete the Postmortem data
      description: Delete the specified Postmortem object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{team_id}/oncall/':
    parameters:
      - name: team_id
        in: path
        description: Unique ID of a Team
        schema:
          type: string
        required: true
    get:
      tags:
        - OnCall
      summary: List all Escalation Policy OnCall object's in a Team V1
      description: Returns all OnCall Users of a Team Escalation Policies.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV1'
              example:
                - escalation_policy:
                    name: Default Escalation Policy
                    summary: This is the default escalation policy for this team
                    description: ''
                    unique_id: 19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488
                    repeat_policy: 0
                    move_to_next: true
                    global_ep: false
                  team:
                    unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                    name: Modified Production Team
                  users:
                    - username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      email: anshulrajput229@gmail.com
                      last_name: Rajput
                - escalation_policy:
                    name: Infra Escalation Policy
                    summary: ''
                    description: ''
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    repeat_policy: 2
                    move_to_next: true
                    global_ep: false
                  team:
                    unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                    name: Modified Production Team
                  users:
                    - username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      email: anshulrajput229@gmail.com
                      last_name: Rajput
                    - username: 507dfda0-a1fd-40e5-943a-e
                      first_name: Mary
                      email: maryjane@sharklasers.com
                      last_name: Jane
                    - username: 85b563c8-18d0-4668-9462-9
                      first_name: Vishwa
                      email: vishwa@yellowant.com
                      last_name: Krishnakumar
            application/xml:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV1'
              example:
                - escalation_policy:
                    name: Default Escalation Policy
                    summary: This is the default escalation policy for this team
                    description: ''
                    unique_id: 19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488
                    repeat_policy: 0
                    move_to_next: true
                    global_ep: false
                  team:
                    unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                    name: Modified Production Team
                  users:
                    - username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      email: anshulrajput229@gmail.com
                      last_name: Rajput
                - escalation_policy:
                    name: Infra Escalation Policy
                    summary: ''
                    description: ''
                    unique_id: 9ea1f98d-b5a3-4d72-8057-2f5f3d743a44
                    repeat_policy: 2
                    move_to_next: true
                    global_ep: false
                  team:
                    unique_id: 61010821-08aa-4098-94f8-f88f1990b54a
                    name: Modified Production Team
                  users:
                    - username: 216bba3d-7268-4a8e-89e9-6
                      first_name: Anshul
                      email: anshulrajput229@gmail.com
                      last_name: Rajput
                    - username: 507dfda0-a1fd-40e5-943a-e
                      first_name: Mary
                      email: maryjane@sharklasers.com
                      last_name: Jane
                    - username: 85b563c8-18d0-4668-9462-9
                      first_name: Vishwa
                      email: vishwa@yellowant.com
                      last_name: Krishnakumar
        '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/teams/{team_id}/oncall/':
    parameters:
      - name: team_id
        in: path
        description: Unique ID of a Team
        schema:
          type: string
        required: true
    get:
      tags:
        - OnCall
      summary: List all Escalation Policy OnCall object's in a Team V2
      description: Returns all OnCall Users of a Team Escalation Policies.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV2'
              example:
                - unique_id: 0c9120eb-12a7-4daa-a23b-64e208dcb6a3
                  name: Default Escalation Policy
                  oncalls:
                    - ep_rule: 5bf14fc1-67a5-4f51-bc7b-33be2f4454c4
                      position: 1
                      delay: 0
                      oncalls:
                        - username: d24b310c-b9b2-4cc7-aa4b-4
                          first_name: Nitin
                          last_name: Chavan
                          email: initinbc@gmail.com
                    - ep_rule: f433c672-fa4b-40c8-92cc-2641c0705f54
                      position: 2
                      delay: 2
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: a24ffd7e-adb9-4c2e-ac6a-6320988f8c98
                      position: 3
                      delay: 4
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                - unique_id: 77fefd9e-e96c-4992-a63b-8995f2740cf1
                  name: TEST DELAY
                  oncalls:
                    - ep_rule: cee87bfb-85d4-420e-b7aa-25b9e25b53c7
                      position: 1
                      delay: 0
                      oncalls:
                        - username: 259d67f8-c975-4403-b9b8-8
                          first_name: Michael
                          last_name: Scott
                          email: dheerukreddy@gmail.com
                        - username: 18e76e66-7c24-4daa-9c58-e
                          first_name: nithin
                          last_name: ' '
                          email: nithin@zenduty.com
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                    - ep_rule: 03dc65e5-268a-41df-aae4-6313cad3d8a6
                      position: 2
                      delay: 2
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: 43ade01e-6443-4ab7-91c9-5d9061b509da
                      position: 3
                      delay: 5
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                - unique_id: 7c8e75dd-ad6a-46a8-98e4-70bd4416462a
                  name: Test schedule deletion
                  oncalls:
                    - ep_rule: 54c082b4-9a38-43d6-889f-2d2f70725af5
                      position: 1
                      delay: 0
                      oncalls: []
                    - ep_rule: fb0fa91c-cc3d-4090-9c68-e1801b6318c7
                      position: 2
                      delay: 1
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                - unique_id: 83ea11e4-52cb-46f6-9f55-b0037c792078
                  name: test preserve resolve incident
                  oncalls:
                    - ep_rule: e33daa6b-2814-4e5b-ac1d-0feef28c4aad
                      position: 1
                      delay: 0
                      oncalls:
                        - username: 08a4805c-8f07-4221-85c2-1
                          first_name: Test
                          last_name: Rajput
                          email: anshulrajput229@gmail.com
            application/xml:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV2'
              example:
                - unique_id: 0c9120eb-12a7-4daa-a23b-64e208dcb6a3
                  name: Default Escalation Policy
                  oncalls:
                    - ep_rule: 5bf14fc1-67a5-4f51-bc7b-33be2f4454c4
                      position: 1
                      delay: 0
                      oncalls:
                        - username: d24b310c-b9b2-4cc7-aa4b-4
                          first_name: Nitin
                          last_name: Chavan
                          email: initinbc@gmail.com
                    - ep_rule: f433c672-fa4b-40c8-92cc-2641c0705f54
                      position: 2
                      delay: 2
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: a24ffd7e-adb9-4c2e-ac6a-6320988f8c98
                      position: 3
                      delay: 4
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                - unique_id: 77fefd9e-e96c-4992-a63b-8995f2740cf1
                  name: TEST DELAY
                  oncalls:
                    - ep_rule: cee87bfb-85d4-420e-b7aa-25b9e25b53c7
                      position: 1
                      delay: 0
                      oncalls:
                        - username: 259d67f8-c975-4403-b9b8-8
                          first_name: Michael
                          last_name: Scott
                          email: dheerukreddy@gmail.com
                        - username: 18e76e66-7c24-4daa-9c58-e
                          first_name: nithin
                          last_name: ' '
                          email: nithin@zenduty.com
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                    - ep_rule: 03dc65e5-268a-41df-aae4-6313cad3d8a6
                      position: 2
                      delay: 2
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: 43ade01e-6443-4ab7-91c9-5d9061b509da
                      position: 3
                      delay: 5
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                - unique_id: 7c8e75dd-ad6a-46a8-98e4-70bd4416462a
                  name: Test schedule deletion
                  oncalls:
                    - ep_rule: 54c082b4-9a38-43d6-889f-2d2f70725af5
                      position: 1
                      delay: 0
                      oncalls: []
                    - ep_rule: fb0fa91c-cc3d-4090-9c68-e1801b6318c7
                      position: 2
                      delay: 1
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                - unique_id: 83ea11e4-52cb-46f6-9f55-b0037c792078
                  name: test preserve resolve incident
                  oncalls:
                    - ep_rule: e33daa6b-2814-4e5b-ac1d-0feef28c4aad
                      position: 1
                      delay: 0
                      oncalls:
                        - username: 08a4805c-8f07-4221-85c2-1
                          first_name: Test
                          last_name: Rajput
                          email: anshulrajput229@gmail.com
        '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/teams/{team_id}/escalation_policies/{ep_id}/oncall/':
    parameters:
      - name: team_id
        in: path
        description: Unique ID of a Team
        schema:
          type: string
        required: true
      - name: ep_id
        in: path
        description: Unique ID of an Escalation Policy
        schema:
          type: string
        required: true
    get:
      tags:
        - OnCall
      summary: Retrieve Escalation Policy OnCall object in an Escalation Policy
      description: Returns all OnCall Users of an Escalation Policy.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV2'
              example:
                - unique_id: 77fefd9e-e96c-4992-a63b-8995f2740cf1
                  name: TEST DELAY
                  oncalls:
                    - ep_rule: cee87bfb-85d4-420e-b7aa-25b9e25b53c7
                      position: 1
                      delay: 0
                      oncalls:
                        - username: 259d67f8-c975-4403-b9b8-8
                          first_name: Michael
                          last_name: Scott
                          email: dheerukreddy@gmail.com
                        - username: 18e76e66-7c24-4daa-9c58-e
                          first_name: nithin
                          last_name: ' '
                          email: nithin@zenduty.com
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                    - ep_rule: 03dc65e5-268a-41df-aae4-6313cad3d8a6
                      position: 2
                      delay: 2
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: 43ade01e-6443-4ab7-91c9-5d9061b509da
                      position: 3
                      delay: 5
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
            application/xml:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV2'
              example:
                - unique_id: 77fefd9e-e96c-4992-a63b-8995f2740cf1
                  name: TEST DELAY
                  oncalls:
                    - ep_rule: cee87bfb-85d4-420e-b7aa-25b9e25b53c7
                      position: 1
                      delay: 0
                      oncalls:
                        - username: 259d67f8-c975-4403-b9b8-8
                          first_name: Michael
                          last_name: Scott
                          email: dheerukreddy@gmail.com
                        - username: 18e76e66-7c24-4daa-9c58-e
                          first_name: nithin
                          last_name: ' '
                          email: nithin@zenduty.com
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                    - ep_rule: 03dc65e5-268a-41df-aae4-6313cad3d8a6
                      position: 2
                      delay: 2
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: 43ade01e-6443-4ab7-91c9-5d9061b509da
                      position: 3
                      delay: 5
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
        '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/teams/{team_id}/services/{service_id}/oncall/':
    parameters:
      - name: team_id
        in: path
        description: Unique ID of a Team
        schema:
          type: string
        required: true
      - name: service_id
        in: path
        description: Unique ID of a Service
        schema:
          type: string
        required: true
    get:
      tags:
        - OnCall
      summary: Retrieve Escalation Policy OnCall object in a Service
      description: Returns all OnCall Users of a Service Escalation Policy.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV2'
              example:
                - unique_id: 0c9120eb-12a7-4daa-a23b-64e208dcb6a3
                  name: Default Escalation Policy
                  oncalls:
                    - ep_rule: 5bf14fc1-67a5-4f51-bc7b-33be2f4454c4
                      position: 1
                      delay: 0
                      oncalls:
                        - username: d24b310c-b9b2-4cc7-aa4b-4
                          first_name: Nitin
                          last_name: Chavan
                          email: initinbc@gmail.com
                    - ep_rule: f433c672-fa4b-40c8-92cc-2641c0705f54
                      position: 2
                      delay: 2
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: a24ffd7e-adb9-4c2e-ac6a-6320988f8c98
                      position: 3
                      delay: 4
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
            application/xml:
              schema:
                $ref: '#/components/schemas/EscalationPolicyOnCallV2'
              example:
                - unique_id: 0c9120eb-12a7-4daa-a23b-64e208dcb6a3
                  name: Default Escalation Policy
                  oncalls:
                    - ep_rule: 5bf14fc1-67a5-4f51-bc7b-33be2f4454c4
                      position: 1
                      delay: 0
                      oncalls:
                        - username: d24b310c-b9b2-4cc7-aa4b-4
                          first_name: Nitin
                          last_name: Chavan
                          email: initinbc@gmail.com
                    - ep_rule: f433c672-fa4b-40c8-92cc-2641c0705f54
                      position: 2
                      delay: 2
                      oncalls:
                        - username: b115be42-9c4f-4277-a885-9
                          first_name: Deepak .D
                          last_name: Kumar
                          email: deepakdx7@gmail.com
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
                    - ep_rule: a24ffd7e-adb9-4c2e-ac6a-6320988f8c98
                      position: 3
                      delay: 4
                      oncalls:
                        - username: fc02c22a-da4b-4807-bbf7-5
                          first_name: Ankur
                          last_name: Rawal
                          email: ankurrawalnitk@gmail.com
        '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/:
    post:
      tags:
        - Global Router
      summary: Create the Global Router object
      description: Create the Global Router 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 object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlobalRouterPayload'
            example:
              name: Infra Global Router
              description: This is Infra Global Router for this account
          application/xml:
            schema:
              $ref: '#/components/schemas/GlobalRouterPayload'
            example:
              name: Infra Global Router
              description: This is Infra Global Router for this account
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              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
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              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
      summary: List all Global Router objects
      description: Returns a list of Global Router objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              example:
                - unique_id: e9be034e-6076-4953-a315-9a3666ffe774
                  name: Default
                  description: testing
                  account: 61fb2d9e-088b-471f-a6d7-872c03cf483d
                  is_enabled: true
                  integration_key: e29c214c-3397-4b92-b4f4-dd63135ad214
                - unique_id: 0dfb3150-456c-4f34-884f-23d449ae7561
                  name: Default-2
                  description: testing
                  account: 61fb2d9e-088b-471f-a6d7-872c03cf483d
                  is_enabled: true
                  integration_key: 5d3b2210-6849-42a4-b268-c8f44a5e50f5
                - 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
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              example:
                - unique_id: e9be034e-6076-4953-a315-9a3666ffe774
                  name: Default
                  description: testing
                  account: 61fb2d9e-088b-471f-a6d7-872c03cf483d
                  is_enabled: true
                  integration_key: e29c214c-3397-4b92-b4f4-dd63135ad214
                - unique_id: 0dfb3150-456c-4f34-884f-23d449ae7561
                  name: Default-2
                  description: testing
                  account: 61fb2d9e-088b-471f-a6d7-872c03cf483d
                  is_enabled: true
                  integration_key: 5d3b2210-6849-42a4-b268-c8f44a5e50f5
                - 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.
        '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}/':
    parameters:
      - name: router_id
        in: path
        description: unique_id of the Global Router object
        schema:
          type: string
        required: true
    get:
      tags:
        - Global Router
      summary: Retrieve the Global Router object
      description: Retrieve the specified Global Router object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              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
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              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.
    put:
      tags:
        - Global Router
      summary: Update the Global Router data
      description: Updates the specified Global Router 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 object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlobalRouterPayload'
            example:
              name: Infra Global Router Updated
              description: This is Infra Global Router Updated for this account
          application/xml:
            schema:
              $ref: '#/components/schemas/GlobalRouterPayload'
            example:
              name: Infra Global Router Updated
              description: This is Infra Global Router Updated for this account
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              example:
                unique_id: b0c1867f-dfd2-4cb3-a298-0b9f322fe716
                name: Infra Global Router Updated
                description: This is Infra Global Router Updated for this account
                account: 61fb2d9e-088b-471f-a6d7-872c03cf483d
                is_enabled: true
                integration_key: cb1de2f2-bb17-4a6c-8a80-03739ca0a911
            application/xml:
              schema:
                $ref: '#/components/schemas/GlobalRouter'
              example:
                unique_id: b0c1867f-dfd2-4cb3-a298-0b9f322fe716
                name: Infra Global Router Updated
                description: This is Infra Global Router Updated 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.
    delete:
      tags:
        - Global Router
      summary: Delete the Global Router  data
      description: Delete the specified Global Router object permanently.
      responses:
        '204':
          description: Success
        '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/':
    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":{"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:
                - action_type: 0
                  integration: 0c4e939d-6d54-401e-ad83-6114368bdd0b
          application/xml:
            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":{"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:
                - action_type: 0
                  integration: 0c4e939d-6d54-401e-ad83-6114368bdd0b
      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 Updated
                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: d926e67a-60ae-4ed4-8ece-b93c31da6bc7
                    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 Updated
                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: d926e67a-60ae-4ed4-8ece-b93c31da6bc7
                    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.
    delete:
      tags:
        - Global Router Rules
      summary: Delete the Global Router Rule data
      description: Delete the specified Global Router Rule object permanently.
      responses:
        '204':
          description: Success
        '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/account/teams/{team_id}/services/{service_id}/integrations/{integration_id}/transformers/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: service_id
        in: path
        description: unique_id of the Service object
        schema:
          type: string
        required: true
      - name: integration_id
        in: path
        description: unique_id of the Integration object
        schema:
          type: string
        required: true
    post:
      tags:
        - Alert Rules
      summary: Create the Alert Rule object
      description: Create the Alert Rule object by setting the values of all the required parameters passed in the request body.
      requestBody:
        description: Request body parameters to create the Alert Rule object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AlertTransformerPayload'
            example:
              actions:
                - unique_id: 992d6573-fb54-4a2b-8d5a-82619d477c3e
                  action_type: 9
                  key: ''
                  value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                  escalation_policy: null
                  schedule: null
                  assign_to: null
                  task_template: null
              description: Add links to alert summary
              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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"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/AlertTransformerPayload'
            example:
              actions:
                - unique_id: 992d6573-fb54-4a2b-8d5a-82619d477c3e
                  action_type: 9
                  key: ''
                  value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                  escalation_policy: null
                  schedule: null
                  assign_to: null
                  task_template: null
              description: Add links to alert summary
              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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"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/AlertTransformer'
              example:
                rule_type: 0
                unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                description: Add links to alert summary
                stop: false
                position: 1
                conditions: []
                actions:
                  - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                    action_type: 9
                    key: ''
                    value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                    value_reference_name: null
                    escalation_policy: null
                    escalation_policy_name: null
                    assign_to: null
                    assign_to_name: null
                    schedule: null
                    sla: null
                    team_priority: null
                    task_template: null
                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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"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/AlertTransformer'
              example:
                rule_type: 0
                unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                description: Add links to alert summary
                stop: false
                position: 1
                conditions: []
                actions:
                  - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                    action_type: 9
                    key: ''
                    value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                    value_reference_name: null
                    escalation_policy: null
                    escalation_policy_name: null
                    assign_to: null
                    assign_to_name: null
                    schedule: null
                    sla: null
                    team_priority: null
                    task_template: null
                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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
        '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:
        - Alert Rules
      summary: List all Alert Rules objects
      description: Returns a list of Alert Rules objects.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertTransformer'
              example:
                - rule_type: 0
                  unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                  description: Add links to alert summary
                  stop: false
                  position: 1
                  conditions: []
                  actions:
                    - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                      action_type: 9
                      key: ''
                      value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                      value_reference_name: null
                      escalation_policy: null
                      escalation_policy_name: null
                      assign_to: null
                      assign_to_name: null
                      schedule: null
                      sla: null
                      team_priority: null
                      task_template: null
                  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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                - rule_type: 0
                  unique_id: ec73021b-1017-4909-a85f-ff9ad04f38db
                  description: Create Incident for every alert
                  stop: false
                  position: 1
                  conditions: []
                  actions:
                    - unique_id: 55754d02-b91a-4138-81fe-5b3b7b01a51e
                      action_type: 10
                      key: ''
                      value: ''
                      value_reference_name: null
                      escalation_policy: null
                      escalation_policy_name: null
                      assign_to: null
                      assign_to_name: null
                      schedule: null
                      sla: null
                      team_priority: null
                      task_template: null
                  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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"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/AlertTransformer'
              example:
                - rule_type: 0
                  unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                  description: Add links to alert summary
                  stop: false
                  position: 1
                  conditions: []
                  actions:
                    - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                      action_type: 9
                      key: ''
                      value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                      value_reference_name: null
                      escalation_policy: null
                      escalation_policy_name: null
                      assign_to: null
                      assign_to_name: null
                      schedule: null
                      sla: null
                      team_priority: null
                      task_template: null
                  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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
                - rule_type: 0
                  unique_id: ec73021b-1017-4909-a85f-ff9ad04f38db
                  description: Create Incident for every alert
                  stop: false
                  position: 1
                  conditions: []
                  actions:
                    - unique_id: 55754d02-b91a-4138-81fe-5b3b7b01a51e
                      action_type: 10
                      key: ''
                      value: ''
                      value_reference_name: null
                      escalation_policy: null
                      escalation_policy_name: null
                      assign_to: null
                      assign_to_name: null
                      schedule: null
                      sla: null
                      team_priority: null
                      task_template: null
                  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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
        '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.
  'api/account/teams/{team_id}/services/{service_id}/integrations/{integration_id}/transformers/{transformers_id}/':
    parameters:
      - name: team_id
        in: path
        description: unique_id of the Team object
        schema:
          type: string
        required: true
      - name: service_id
        in: path
        description: unique_id of the Service object
        schema:
          type: string
        required: true
      - name: integration_id
        in: path
        description: unique_id of the Integration object
        schema:
          type: string
        required: true
      - name: transformers_id
        in: path
        description: unique_id of the Alert Rule object
        schema:
          type: string
        required: true
    get:
      tags:
        - Alert Rules
      summary: Retrieve the Alert Rule object
      description: Retrieve the specified Alert Rule object.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertTransformer'
              example:
                rule_type: 0
                unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                description: Add links to alert summary
                stop: false
                position: 1
                conditions: []
                actions:
                  - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                    action_type: 9
                    key: ''
                    value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                    value_reference_name: null
                    escalation_policy: null
                    escalation_policy_name: null
                    assign_to: null
                    assign_to_name: null
                    schedule: null
                    sla: null
                    team_priority: null
                    task_template: null
                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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"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/AlertTransformer'
              example:
                rule_type: 0
                unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                description: Add links to alert summary
                stop: false
                position: 1
                conditions: []
                actions:
                  - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                    action_type: 9
                    key: ''
                    value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                    value_reference_name: null
                    escalation_policy: null
                    escalation_policy_name: null
                    assign_to: null
                    assign_to_name: null
                    schedule: null
                    sla: null
                    team_priority: null
                    task_template: null
                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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
        '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.
    patch:
      tags:
        - Alert Rules
      summary: Update the Alert Rule data
      description: Updates the specified Alert 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 Alert Rule object
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AlertTransformerPayload'
            example:
              rule_type: 0
              unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
              description: Add links to alert summary updated
              stop: false
              position: 1
              conditions: []
              actions:
                - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                  action_type: 9
                  key: ''
                  value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                  value_reference_name: null
                  escalation_policy: null
                  escalation_policy_name: null
                  assign_to: null
                  assign_to_name: null
                  schedule: null
                  sla: null
                  team_priority: null
                  task_template: null
              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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"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/AlertTransformerPayload'
            example:
              rule_type: 0
              unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
              description: Add links to alert summary updated
              stop: false
              position: 1
              conditions: []
              actions:
                - unique_id: 13eddca2-38a2-4efd-a8a9-08adcb036416
                  action_type: 9
                  key: ''
                  value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                  value_reference_name: null
                  escalation_policy: null
                  escalation_policy_name: null
                  assign_to: null
                  assign_to_name: null
                  schedule: null
                  sla: null
                  team_priority: null
                  task_template: null
              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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertTransformer'
              example:
                rule_type: 0
                unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                description: Add links to alert summary updated
                stop: false
                position: 1
                conditions: []
                actions:
                  - unique_id: c6d6028b-74f3-4f51-b748-b14f207e380f
                    action_type: 9
                    key: ''
                    value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                    value_reference_name: null
                    escalation_policy: null
                    escalation_policy_name: null
                    assign_to: null
                    assign_to_name: null
                    schedule: null
                    sla: null
                    team_priority: null
                    task_template: null
                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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"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/AlertTransformer'
              example:
                rule_type: 0
                unique_id: 8de24581-eade-4b50-a7f0-ac20594fde98
                description: Add links to alert summary updated
                stop: false
                position: 1
                conditions: []
                actions:
                  - unique_id: c6d6028b-74f3-4f51-b748-b14f207e380f
                    action_type: 9
                    key: ''
                    value: '{{summary}} https://www.zenduty.com/docs/alertrules/'
                    value_reference_name: null
                    escalation_policy: null
                    escalation_policy_name: null
                    assign_to: null
                    assign_to_name: null
                    schedule: null
                    sla: null
                    team_priority: null
                    task_template: null
                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.message","operator":"is_not_empty","value":[],"valueSrc":[],"operatorOptions":null,"valueType":[]},"path":["9a99988a-0123-4456-b89a-b1607f326fd8","898aa9ba-0123-4456-b89a-b16a429f5d94"]}},"properties":{"conjunction":"AND","not":false},"path":["9a99988a-0123-4456-b89a-b1607f326fd8"]}'
        '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.
    delete:
      tags:
        - Alert Rules
      summary: Delete the Alert Rule object
      description: Delete the specified Alert Rule object permanently.
      responses:
        '204':
          description: Success
        '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.
components:
  schemas:
    InviteUserPayload:
      type: object
      description: Payload schema for the Invite User object
      required:
        - team
        - user_detail
      properties:
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        user_detail:
          type: object
          description: User object schema
          properties:
            first_name:
              type: string
              description: A string that represents the User object's first_name
            last_name:
              type: string
              description: A string that represents the User object's last_name
            email:
              type: string
              description: A string that represents the User object's email
            role:
              type: integer
              description: An integer that represents the Account Member object's role
    DeleteUserPayload:
      type: object
      description: Payload schema for the Delete User object
      required:
        - username
      properties:
        username:
          type: string
          description: A system-generated string that represents the User object's username
    AccountMember:
      type: object
      description: Account Member object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Account Member object's unique_id
        time_zone:
          type: string
          default: UTC
          description: 'A formatted string that represents the Account Member object''s time zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        user:
          $ref: '#/components/schemas/User'
        joining_date:
          type: string
          description: A formatted string that represents the Account Member object's joining_date
        role:
          type: integer
          default: 3
          description: 'An integer that represents the Account Member object''s role. 1 is owner, 2 is admin and 3 is user'
        is_verified:
          type: boolean
          default: false
          description: A boolean flag that represents the Account Member object's verification
    AccountMemberPayload:
      type: object
      description: Payload schema for the Account Member object
      required:
        - user
      properties:
        time_zone:
          type: string
          default: UTC
          description: 'A formatted string that represents the Account Member object''s time zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        user:
          $ref: '#/components/schemas/User'
        role:
          type: integer
          default: 3
          description: 'An integer that represents the Account Member object''s role. 1 is owner, 2 is admin and 3 is user'
    AccountCustomRolePostAndPutResponse:
      type: object
      description: Account Custom Role object's put and post response schema
      properties:
        unique_id:
          type: string
          description: A system generated string that represents the Account Custom Role object's unique_id
        name:
          type: string
          description: A string that represents the unique name for Account Custom Role object
        description:
          type: string
          description: A string that represents the description for Account Custom Role object
    AccountCustomRole:
      type: object
      description: Account Custom Role object's schema
      properties:
        unique_id:
          type: string
          description: A system generated string that represents the Account Custom Role object's unique_id
        name:
          type: string
          description: A string that represents the unique name for Account Custom Role object
        description:
          type: string
          description: A string that represents the description for Account Custom Role object
        permissions:
          type: string
          description: An array of account level permissions
    AccountCustomRolePayload:
      type: object
      description: Payload schema for the Account Custom Role object
      required:
        - permissions
      properties:
        name:
          type: string
          description: A string that represents the unique name for Account Custom Role object
        description:
          type: string
          description: A string that represents the description for Account Custom Role object
        permissions:
          type: array
          description: An array of account level permissions
          items:
            type: string
    UserCustomRole:
      type: object
      description: User Custom Role object's schema
      properties:
        user:
          type: string
          description: A system generated string that represents the user object's username
        custom_role:
          type: string
          description: A system generated string that represents the Account Custom Role object's unique_id
        custom_role_details:
          type: object
          description: Custom Role detail's object schema
          properties:
            name:
              type: string
              description: A string that represents the name for Account Custom Role object
    UserCustomRolePayload:
      type: object
      description: Payload schema for the User Custom Role object
      required:
        - custom_role
      properties:
        custom_role:
          type: string
          description: A system-generated string that represents the User Custom Role object's unique_id
    UserNotificationRule:
      type: object
      description: User Notification Rules object's schema
      properties:
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the User Notification Rules object's creation_date
        start_delay:
          type: integer
          description: An integer that represents the User Notification Rules object's delay field in minutes.
        type:
          type: string
          description: A string that represents the User Notification Rules object's type
        unique_id:
          type: string
          description: A system-generated string that represents the User Notification Rules object's unique_id
        contact:
          type: string
          description: A system-generated string that represents the User Contact Method object's unique_id
        urgency:
          type: integer
          description: An integer that represents the User Notification Rules object's urgency field. 1 is for high urgency incidents and 0 is for low urgency incidents.
    UserNotificationRulePayload:
      type: object
      description: Payload schema for the User Notification Rules object
      required:
        - contact
      properties:
        contact:
          type: string
          description: A system-generated string that represents the User Contact Method object's unique_id
        start_delay:
          type: integer
          description: An integer that represents the User Notification Rules object's delay field in minutes.
        urgency:
          type: integer
          description: An integer that represents the User Notification Rules object's urgency field. 1 is for high urgency incidents and 0 is for low urgency incidents.
    UserForwardingRule:
      type: object
      description: User Forwarding Rule object's schema
      properties:
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the User Forwarding Rule object's creation_date
        unique_id:
          type: string
          description: A system-generated string that represents the User Forwarding Rule object's unique_id
        time_zone:
          type: string
          description: 'A formatted string that represents the User Forwarding Rule object''s time zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        from_date:
          type: string
          format: date-time
          description: A formatted string that represents the User Forwarding Rule object's from_date field
        to_date:
          type: string
          format: date-time
          description: A formatted string that represents the User Forwarding Rule object's to_date field
        to_user:
          type: string
          description: A system-generated string that represents the User object's username
        created_by:
          type: string
          description: A system-generated string that represents the User object's username
        user:
          type: string
          description: A system-generated string that represents the User object's username
    UserForwardingRulePayload:
      type: object
      description: Payload schema for the User Forwarding Rules object
      required:
        - from_date
        - to_date
        - to_user
      properties:
        from_date:
          type: string
          format: date-time
          description: A formatted string that represents the User Forwarding Rule object's from_date field
        to_date:
          type: string
          format: date-time
          description: A formatted string that represents the User Forwarding Rule object's to_date field
        time_zone:
          type: string
          description: 'A formatted string that represents the User Forwarding Rule object''s time zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        to_user:
          type: string
          description: A system-generated string that represents the User object's username
    UserContactMethod:
      type: object
      description: User Contact Method object's schema
      properties:
        name:
          type: string
          description: A string that represents the User Contact Method object's name field
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the User Contact Method object's creation_date
        contact_type:
          type: integer
          description: 'An integer that represents the User Contact Method object''s contact_type field. 1 is for Email, 2 is for SMS, 3 is for Phone Call, 4 is for Slack, 5 is for MS Teams and 6 is for Google Chat'
        value:
          type: string
          description: 'A formatted string that represents the User Contact Method object''s value field. value can be Email ID, Phone Number, Slack ID, Microsoft ID, Google Chat ID.'
        unique_id:
          type: string
          description: A system-generated string that represents the User Contact Method object's unique_id
    UserContactMethodPayload:
      type: object
      description: Payload schema for the User Contact Methods object
      required:
        - name
        - value
        - contact_type
      properties:
        name:
          type: string
          description: A string that represents the User Contact Method object's name field
        value:
          type: string
          description: 'A formatted string that represents the User Contact Method object''s value field. value can be Email ID, Phone Number, Slack ID, Microsoft ID, Google Chat ID.'
        contact_type:
          type: integer
          description: 'An integer that represents the User Contact Method object''s contact_type field. 1 is for Email, 2 is for SMS, 3 is for Phone Call, 4 is for Slack, 5 is for MS Teams and 6 is for Google Chat'
    Team:
      type: object
      description: Team object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        name:
          type: string
          description: A that represents the Team object's name
        account:
          type: string
          description: A system-generated string that represents the Account object's unique_id
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Team object's creation_date
        members:
          $ref: '#/components/schemas/TeamMember'
        owner:
          type: string
          description: A system-generated string that represents the User object's username
        roles:
          $ref: '#/components/schemas/IncidentRoleGet'
    TeamPayload:
      type: object
      description: Payload schema for the Team object
      required:
        - name
      properties:
        name:
          type: string
          description: A that represents the Team object's name
    TeamMember:
      type: object
      description: Team Member object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Team Member object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        user:
          $ref: '#/components/schemas/User'
        joining_date:
          type: string
          format: datetime
          description: A formatted string that represents the Team Member object's joining_date
        role:
          type: integer
          default: 2
          description: An integer that represents the Team Member object's role. 1 is manager and 2 is user
    TeamMemberPayload:
      type: object
      description: Payload schema for the Team Member object
      required:
        - user
      properties:
        user:
          $ref: '#/components/schemas/User'
        role:
          type: integer
          default: 2
          description: An integer that represents the Team Member object's role. 1 is manager and 2 is user
    TeamPermission:
      type: object
      description: Team Permission object's schema
      properties:
        unique_id:
          type: string
          description: A system generated string that represents the Team object's unique_id
        account_permissions:
          type: array
          description: An array of team level permissions
          items:
            type: string
    TeamPermissionPayload:
      type: object
      description: Payload schema for the Team Permission object
      required:
        - account_permissions
      properties:
        account_permissions:
          type: array
          description: An array of team level permissions
          items:
            type: string
    Schedule:
      type: object
      description: Schedule object schema
      properties:
        name:
          type: string
          description: A string that represents the Schedule object's name
        summary:
          type: string
          description: A string that represents the Schedule object's summary
        description:
          type: string
          description: A string that represents the Schedule object's description
        time_zone:
          type: string
          description: 'A formatted string that represents the Schedule object''s time zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        layers:
          type: array
          description: An array of Schedule Layer objects
          items:
            $ref: '#/components/schemas/ScheduleLayer'
        overrides:
          type: array
          description: An array of Schedule Overrides objects
          items:
            $ref: '#/components/schemas/ScheduleOverride'
        unique_id:
          type: string
          description: A system-generated string that represents the Schedule object's unique_id
    SchedulePayload:
      type: object
      description: Payload schema for the Schedule object
      required:
        - name
      properties:
        name:
          type: string
          description: A string that represents the Schedule object's name
        summary:
          type: string
          description: A string that represents the Schedule object's summary
        description:
          type: string
          description: A string that represents the Schedule object's description
        time_zone:
          type: string
          description: 'A formatted string that represents the Schedule object''s time zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        layers:
          type: array
          description: An array of Schedule Layer objects
          items:
            $ref: '#/components/schemas/ScheduleLayerPayload'
        overrides:
          type: array
          description: An array of Schedule Overrides objects
          items:
            $ref: '#/components/schemas/ScheduleOverridePayload'
    EP:
      type: object
      description: Escalation Policy object schema
      properties:
        name:
          type: string
          description: A string that represents the Escalation Policy object's name
        summary:
          type: string
          description: A string that represents the Escalation Policy object's summary
        description:
          type: string
          description: A string that represents the Escalation Policy object's description
        rules:
          $ref: '#/components/schemas/EP_Rule'
        unique_id:
          type: string
          description: A string that represents the Escalation Policy object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        repeat_policy:
          type: integer
          description: An integer that represents the Escalation Policy object's repeat_policy
        move_to_next:
          type: boolean
          description: A boolean flag that represents whether to move to the next Escalation Rule if no user is found on the current Escalation Rule
        global_ep:
          type: boolean
          description: A boolean flag that represents whether the Escalation Policy is global or not.
    EPPayload:
      type: object
      description: Payload schema for the Escalation Policy object
      required:
        - name
        - rules
      properties:
        name:
          type: string
          description: A string that represents the Escalation Policy object's name
        summary:
          type: string
          description: A string that represents the Escalation Policy object's summary
        description:
          type: string
          description: A string that represents the Escalation Policy object's description
        rules:
          $ref: '#/components/schemas/EP_RulePayload'
    ServiceGet:
      description: Service object schema for List and Retrieve
      type: object
      properties:
        name:
          type: string
          description: A string that represents the Service object's name
        creation date:
          type: string
          format: date-time
          description: A formatted string that represents the Service object's creation_date
        summary:
          type: string
          description: A string that represents the Service object's summary
        description:
          type: string
          description: A string that represents the Service object's description
        unique_id:
          type: string
          description: A system-generated string that represents the Service object's unique_id
        auto_resolve_timeout:
          type: integer
          default: 0
          description: An integer that represents the timeout for automatically resolving an Incident
        created_by:
          type: string
          description: A system-generated string that represents the User object's username
        team_priority:
          type: string
          description: A system-generated string that represents the Priority object's unique_id
        task_template:
          type: string
          description: A system-generated string that represents the Task Template object's unique_id
        acknowlegement_timeout:
          type: integer
          default: 0
          description: An integer that represents the timeout for acknowledging an Incident
        status:
          type: integer
          default: 1
          description: 'An integer that represents the Service object''s status 0 is disabled, 1 is active, 2 is a warning, 3 is critical, and 4 is under maintenance'
        escalation_policy:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        sla:
          type: string
          description: A system-generated string that represents the SLA object's unique_id
        under_maintenance:
          type: boolean
          default: false
          description: A boolean flag that represents whether the service object is under maintenance or not
        collation:
          type: integer
          default: 0
          description: 'An integer that represents the Service object''s collation type. 0 is off, 1 is time-based, and 2 is intelligence.'
        collation_time:
          type: integer
          default: 0
          description: An integer that represents the Service object's collation_time
    ServicePostPut:
      description: Service object schema for Create and Update
      type: object
      properties:
        name:
          type: string
          description: A string that represents the Service object's name
        creation date:
          type: string
          format: date-time
          description: A formatted string that represents the Service object's creation_date
        summary:
          type: string
          description: A string that represents the Service object's summary
        description:
          type: string
          description: A string that represents the Service object's description
        unique_id:
          type: string
          description: A system-generated string that represents the Service object's unique_id
        auto_resolve_timeout:
          type: integer
          default: 0
          description: An integer that represents the timeout for automatically resolving an Incident
        created_by:
          type: string
          description: A system-generated string that represents the User object's username
        team_priority:
          type: string
          description: A system-generated string that represents the Priority object's unique_id
        task_template:
          type: string
          description: A system-generated string that represents the Task Template object's unique_id
        acknowlegement_timeout:
          type: integer
          default: 0
          description: An integer that represents the timeout for acknowledging an Incident
        status:
          type: integer
          default: 1
          description: 'An integer that represents the Service object''s status 0 is disabled, 1 is active, 2 is a warning, 3 is critical, and 4 is under maintenance'
        escalation_policy:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        sla:
          type: string
          description: A system-generated string that represents the SLA object's unique_id
        collation_time:
          type: integer
          default: 0
          description: An integer that represents the Service object's collation_time
        collation:
          type: integer
          default: 0
          description: 'An integer that represents the Service object''s collation type. 0 is off, 1 is time-based, and 2 is intelligence.'
        under_maintenance:
          type: boolean
          default: false
          description: A boolean flag that represents whether the service object is under maintenance or not
    ServicePayload:
      type: object
      description: Payload schema for the the Service object
      required:
        - team_priority
        - escalation_policy
        - sla
      properties:
        name:
          type: string
          description: A string that represents the Service object's name
        summary:
          type: string
          description: A string that represents the Service object's summary
        description:
          type: string
          description: A string that represents the Service object's description
        auto_resolve_timeout:
          type: integer
          default: 0
          description: An integer that represents the timeout for automatically resolving an Incident
        team_priority:
          type: string
          description: A system-generated string that represents the Priority object's unique_id
        task_template:
          type: string
          description: A system-generated string that represents the Task Template object's unique_id
        acknowlegement_timeout:
          type: integer
          default: 0
          description: An integer that represents the timeout for acknowledging an Incident
        status:
          type: integer
          default: 1
          description: 'An integer that represents the Service object''s status 0 is disabled, 1 is active, 2 is a warning, 3 is critical, and 4 is under maintenance'
        escalation_policy:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        sla:
          type: string
          description: A system-generated string that represents the SLA object's unique_id
        under_maintenance:
          type: boolean
          default: false
          description: A boolean flag that represents whether the service object is under maintenance or not
        collation:
          type: integer
          default: 0
          description: 'An integer that represents the Service object''s collation type. 0 is off, 1 is time-based, and 2 is intelligence.'
        collation_time:
          type: integer
          default: 0
          description: An integer that represents the Service object's collation_time
    Integration:
      description: Integration object schema
      type: object
      properties:
        name:
          type: string
          description: A string that represents the Integration object's name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Integration object's creation_date
        summary:
          type: string
          description: A string that represents the Integration object's summary
        unique_id:
          type: string
          description: A system-generated string that represents the Integration object's unique_id
        service:
          type: string
          description: A system-generated string that represents the Service object's unique_id
        application:
          type: string
          description: A system-generated string that represents the Application object's unique_id
        application_reference:
          $ref: '#/components/schemas/Application'
        integration_key:
          type: string
          description: A system-generated string that represents the Integration object's integration_key
        created_by:
          type: string
          description: A system-generated string that represents the User object's username
        is_enabled:
          type: boolean
          default: true
          description: A boolean flag that represents whether an Integration is enabled or not
        create_incidents_for:
          type: integer
          default: 1
          description: 'An integer that represents the type of the Incidents this Integration object will create. 0 is do not create incidents. 1 is critical, 2 is critical and errors, and 3 is critical, errors and warnings.'
        integration_type:
          type: integer
          default: 0
          description: An integer that represents the Integration object's integration_type. 0 is alert and 1 is outbound.
        default_urgency:
          type: integer
          default: 1
          description: An integer that represents the Integration object's default_urgency. 0 is low and 1 is high.
        webhook_url:
          type: string
          description: A system-generated string that represents the Integration object's webhook url
    IntegrationPayload:
      type: object
      description: Payload schema for the Integration object
      required:
        - application
      properties:
        name:
          type: string
          description: A string that represents the Integration object's name
        summary:
          type: string
          description: A string that represents the Integration object's summary
        application:
          type: string
          description: 'A system-generated string that represents the Application object''s unique_id. To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application.'
        is_enabled:
          type: boolean
          default: true
          description: A boolean flag that represents whether an Integration is enabled or not
        create_incidents_for:
          type: integer
          default: 1
          description: 'An integer that represents the type of the Incidents this Integration object will create. 0 is do not create incidents. 1 is critical, 2 is critical and errors, and 3 is critical, errors and warnings.'
        integration_type:
          type: integer
          default: 0
          description: An integer that represents the Integration object's integration_type. 0 is alert and 1 is outbound.
        default_urgency:
          type: integer
          default: 1
          description: An integer that represents the Integration object's default_urgency. 0 is low and 1 is high.
    IntegrationAlert:
      type: object
      description: Integration Alert object schema
      properties:
        integration_object:
          description: Integration object schema for Integration Alert object schema
          type: object
          properties:
            name:
              type: string
              description: A string that represents the Integration object's name
            creation_date:
              type: string
              format: date-time
              description: A formatted string that represents the Integration object's creation_date
            summary:
              type: string
              description: A string that represents the Integration object's summary
            unique_id:
              type: string
              description: A system-generated string that represents the Integration object's unique_id
            service:
              type: string
              description: A system-generated string that represents the Service object's unique_id
            team:
              type: string
              description: A system-generated string that represents the Team object's unique_id
            integration_key:
              type: string
              description: A system-generated string that represents the Integration object's integration_key
            is_enabled:
              type: boolean
              default: true
              description: A boolean flag that represents whether an Integration is enabled or not
            integration_type:
              type: integer
              default: 0
              description: An integer that represents the Integration object's integration_type. 0 is alert and 1 is outbound.
        summary:
          type: string
          description: A string that represents the Integration Alert object's summary
        incident:
          type: integer
          description: An integer that represents the Incident object's incident_number
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Integration Alert object's creation_date
        message:
          type: string
          description: A string that represents the Integration Alert object's message
        integration:
          type: string
          description: A string that represents the Integration object's unique_id
        suppressed:
          type: boolean
          default: true
          description: A boolean flag that represents whether the Integration Alert object is suppressed or not
        entity_id:
          type: string
          description: A system-generated string that represents the Integration Alert object's entitiy_id
        alert_type:
          type: integer
          default: 1
          description: 'An integer that represents the Integration Alert object''s alert_type. 0 is for info, 1 is for warning, 2 for error, 3 is  for critical, 4 is for acknowledged and 5 is for resolved.'
        unique_id:
          type: string
          description: A system-generated string that represents the Integration Alert object's unique_id
        images:
          type: array
          items:
            $ref: '#/components/schemas/EventImage'
        urls:
          type: array
          items:
            $ref: '#/components/schemas/EventUrl'
        notes:
          type: array
          items:
            $ref: '#/components/schemas/EventNote'
    Incident:
      type: object
      description: Incident object schema
      properties:
        summary:
          type: string
          description: A string that represents the Incident object's summary
        incident_number:
          type: integer
          description: An integer that represents the Incident object's incident_number
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident object's creation_date
        status:
          type: integer
          default: 1
          description: 'An integer that represents the Incident object''s status. 1 is triggered, 2 is acknowledged and 3 is resolved'
        unique_id:
          type: string
          description: A system-generated string that represents the Incident object's unique_id
        service_object:
          $ref: '#/components/schemas/ServicePostPut'
        title:
          type: string
          description: A string that represents the Incident object's title
        incident_key:
          type: string
          description: A system-generated string that represents the Incident object's incident_key
        service:
          type: string
          description: A system-generated string that represents the Service object's unique_id
        urgency:
          type: integer
          default: 1
          description: A integer that represents the Incident object's urgency 0 for low and 1 for high
        merged_with:
          type: integer
        assigned_to:
          type: string
          description: A system-generated string that represents the User object's username
        escalation_policy:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        escalation_policy_object:
          type: object
          description: Escalation Policy object schema for Incident object schema
          properties:
            unique_id:
              type: string
              description: A system-generated string that represents the Escalation Policy object's unique_id
            name:
              type: string
              description: A string that represents the Escalation Policy object's name
        assigned_to_name:
          type: string
          description: A string that represents the User object's full name
        resolved_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident object's resolved_date
        acknowledged_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident object's acknowledged_date
        context_window_start:
          type: string
          format: date-time
          description: A formatted string that represents the Incident object's context_window_start date
        context_window_end:
          type: string
          format: date-time
          description: A formatted string that represents the Incident object's context_window_end date
        tags:
          type: array
          description: An array of Incident Tag objects
          items:
            type: object
            description: Incident Tag object schema for Incident object schema
            properties:
              unique_id:
                type: string
                description: A system-generated string that represents the Incident Tag object's unique_id
              incident:
                type: integer
                description: An integer that represents the the Incident object's incident_number
              creation_date:
                type: string
                format: date-time
                description: A formatted string that represents the Tag object's creation_date
              name:
                type: string
                description: A string that represents the Tag object's name
              color:
                type: string
                description: A string that represents the Tag object's color
              tag_id:
                type: string
                description: A system-generated string that represents the Tag object's unique_id
              team_tag:
                type: string
                description: A system-generated string that represents the Tag object's unique_id
        sla:
          type: string
          description: A system-generated string that represents the SLA object's unique_id
        sla_object:
          type: object
          description: SLA object schema for Incident object schema
          properties:
            unique_id:
              type: string
              description: A system-generated string that represents the SLA object's unique_id
            name:
              type: string
              description: A string that represents the SLA object's name
            is_active:
              type: boolean
              default: true
              description: A boolean flag that represents whether the SLA object is active or not.
            acknowledge_time:
              type: integer
              description: An integer that represents the SLA object's acknowledge_time
            resolve_time:
              type: integer
              description: An integer that represents the SLA object's resolve_time
            creation_date:
              type: string
              format: date-time
              description: A formatted string that represents the SLA object's creation_date
        team_priority:
          type: string
          description: A system-generated string that represents the Priority object's unique_id
        team_priority_object:
          type: object
          description: Priority object schema for Incident object schema
          properties:
            unique_id:
              type: string
              description: A system-generated string that represents the Priority object's unique_id
            name:
              type: string
              description: A string that represents the Priority object's name
            description:
              type: string
              description: A string that represents the Priority object's description
            color:
              type: string
              description: A string that represents the Priority object's color
    IncidentPayload:
      type: object
      description: Payload schema for the Incident object
      required:
        - title
        - service
      properties:
        summary:
          type: string
          description: A string that represents the Incident object's summary
        status:
          type: integer
          default: 1
          description: 'An integer that represents the Incident object''s status. 1 is triggered, 2 is acknowledged and 3 is resolved'
        title:
          type: string
          description: A string that represents the Incident object's title
        service:
          type: string
          description: A system-generated string that represents the Service object's unique_id
        assigned_to:
          type: string
          description: A system-generated string that represents the User object's username
        escalation_policy:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        sla:
          type: string
          description: A system-generated string that represents the SLA object's unique_id
        team_priority:
          type: string
          description: A system-generated string that represents the Priority object's unique_id
    IncidentRoleGet:
      type: object
      description: Incident Role object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Incident Role object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        title:
          type: string
          description: An arbitary string that represents the Incident Role object's title
        description:
          type: string
          description: An arbitary string that represents the Incident Role object's description
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident Role object's creation_date
        rank:
          type: integer
          default: 1
          description: An integer that represents the Incident Role object's rank
    IncidentRolePostPut:
      type: object
      description: Incident Role object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Incident Role object's unique_id
        title:
          type: string
          description: An arbitary string that represents the Incident Role object's title
        description:
          type: string
          description: An arbitary string that represents the Incident Role object's description
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident Role object's creation_date
        rank:
          type: integer
          default: 1
          description: An integer that represents the Incident Role object's rank
    IRPayload:
      type: object
      description: Payload schema for the Incident Role object
      required:
        - title
      properties:
        title:
          type: string
          description: An arbitary string that represents the Incident Role object's title
        description:
          type: string
          description: An arbitary string that represents the Incident Role object's description
        rank:
          type: integer
          default: 1
          description: An integer that represents the Incident Role object's rank
    IncidentNote:
      description: Incident Note object schema
      type: object
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Incident Note object's unique_id
        incident:
          type: integer
          description: An integer that represents the Incident object's incident_number
        user:
          type: string
          description: A system-generated string that represents the User object's username
        note:
          type: string
          description: A string that represents the Incident Note object's note data
        user_name:
          type: string
          description: A string that represents the User object's full name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident Note object's creation_date
    IncidentNotePayload:
      type: object
      description: Payload schema for the Incident Note object
      properties:
        note:
          type: string
          description: A string that represents the Incident Note object's note data
    IncidentTag:
      description: Incident Tag object schema
      type: object
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Incident Tag object's unique_id
        incident:
          type: integer
          description: An integer that represents the Incident object's incident_number
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident Tag object's creation_date
        name:
          type: string
          description: A string that represents the Incident Tag object's name
        color:
          type: string
          description: A string that represents the Incident Tag object's color
        tag_id:
          type: string
          description: A system-generated string that represents the Team Tag object's unique_id
        team_tag:
          type: string
          description: A system-generated string that represents the Team Tag object's unique_id
    IncidentTagPayload:
      type: object
      description: Payload schema for the Incident Tag object
      properties:
        team_tag:
          type: string
          description: A system-generated string that represents the Team Tag object's unique_id
    Event:
      type: object
      description: Event object schema
      properties:
        integration_object:
          description: Integration object schema for Event object schema
          type: object
          properties:
            name:
              type: string
              description: A string that represents the Integration object's name
            creation_date:
              type: string
              format: date-time
              description: A formatted string that represents the Integration object's creation_date
            summary:
              type: string
              description: A string that represents the Integration object's summary
            unique_id:
              type: string
              description: A system-generated string that represents the Integration object's unique_id
            service:
              type: string
              description: A system-generated string that represents the Service object's unique_id
            team:
              type: string
              description: A system-generated string that represents the Team object's unique_id
            integration_key:
              type: string
              description: A system-generated string that represents the Integration object's integration_key
            is_enabled:
              type: boolean
              default: true
              description: A boolean flag that represents whether an Integration is enabled or not
            integration_type:
              type: integer
              default: 0
              description: An integer that represents the Integration object's integration_type. 0 is alert and 1 is outbound.
        summary:
          type: string
          description: A string that represents the Event object's summary
        incident:
          type: integer
          description: An integer that represents the Incident object's incident_number
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Event object's creation_date
        message:
          type: string
          description: A string that represents the Event object's message
        integration:
          type: string
          description: A string that represents the Integration object's unique_id
        suppressed:
          type: boolean
          default: true
          description: A boolean flag that represents whether the Event object is suppressed or not
        entity_id:
          type: string
          description: A system-generated string that represents the Event object's entitiy_id
        payload:
          type: object
          description: Additional payload of the Event object
        alert_type:
          type: integer
          default: 1
          description: 'An integer that represents the Event object''s alert_type. 0 is for info, 1 is for warning, 2 for error, 3 is  for critical, 4 is for acknowledged and 5 is for resolved.'
        unique_id:
          type: string
          description: A system-generated string that represents the Event object's unique_id
        images:
          type: array
          items:
            $ref: '#/components/schemas/EventImage'
        urls:
          type: array
          items:
            $ref: '#/components/schemas/EventUrl'
        notes:
          type: array
          items:
            $ref: '#/components/schemas/EventNote'
        incident_created:
          type: boolean
          description: A boolean flag that represents whether the Incident Alert object created an incident or not.
    EventPayload:
      type: object
      description: Payload schema for the Event object
      required:
        - message
        - alert_type
      properties:
        message:
          type: string
          description: A string that represents the Event object's message
        summary:
          type: string
          description: A string that represents the Event object's summary
        alert_type:
          type: string
          default: info
          description: 'A pre-defined string that represents the Event object''s alert_type. Choices - `critical`, `acknowledged`, `resolved`, `error`, `warning`, `info`.'
        entity_id:
          type: string
          description: 'A unique id for the alert. If not provided, the Zenduty API will create one.'
        payload:
          type: object
          description: A JSON payload containing additional information about the alert.
        urls:
          type: array
          description: An array containing JSON schema of urls related to alerts.
          items:
            type: string
    IncidentAlert:
      type: object
      description: Incident Alert object schema
      properties:
        integration_object:
          $ref: '#/components/schemas/Integration'
        summary:
          type: string
          description: A string that represents the Incident Alert object's summary
        incident:
          type: integer
          description: An integer that represents the Incident object's incident_number
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Incident Alert object's creation_date
        message:
          type: string
          description: A string that represents the Incident Alert object's message
        integration:
          type: string
          description: A system-generated string that represents the Integration object's unique_id
        suppressed:
          type: boolean
          default: false
          description: A boolean flag that represents whether the Incident Alert object is suppressed or not.
        entity_id:
          type: string
          description: A system-generated string that represents the Incident Alert object's entity_id
        alert_type:
          type: integer
          default: 1
          description: 'An integer that represents the Incident Alert object''s type. 0 is info, 1 is warning, 2 is error, 3 is critical, 4 is acknowledged and 5 is resolved'
        unique_id:
          type: string
          description: A system-generated string that represents the Incident Alert object's unique_id
        images:
          type: array
          items:
            $ref: '#/components/schemas/EventImage'
        urls:
          type: array
          items:
            $ref: '#/components/schemas/EventUrl'
        notes:
          type: array
          items:
            $ref: '#/components/schemas/EventNote'
    TagGet:
      type: object
      description: Tag object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Tag object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        name:
          type: string
          description: A string that represents the Tag object's name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Tag object's creation_date
        color:
          type: string
          description: A string that represents the Tag object's color
    TagPostPut:
      type: object
      description: Tag object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Tag object's unique_id
        name:
          type: string
          description: A string that represents the Tag object's name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Tag object's creation_date
        color:
          type: string
          description: A string that represents the Tag object's color
        team:
          type: integer
          description: An integer that represents the Team object's id
    TagPayload:
      type: object
      description: Payload schema for the Tag object
      properties:
        name:
          type: string
          description: A string that represents the Tag object's name
        color:
          type: string
          description: A string that represents the Tag object's color
    TaskTemplateGet:
      type: object
      description: Task Template object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Task Template object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        name:
          type: string
          description: A string that represents the Task Template object's name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Task Template object's creation_date
        summary:
          type: string
          description: A string that represents the Task Template object's summary
        due_immediately:
          type: integer
          default: 0
          description: An integer that represents whether the Task Template object is due immediately or not. 0 is false and 1 is true.
    TaskTemplatePostPut:
      type: object
      description: Task Template object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Task Template object's unique_id
        name:
          type: string
          description: A string that represents the Task Template object's name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Task Template object's creation_date
        summary:
          type: string
          description: A string that represents the Task Template object's summary
        due_immediately:
          type: integer
          default: 0
          description: An integer that represents whether the Task Template object is due immediately or not. 0 is false and 1 is true.
    TTPayload:
      type: object
      description: Payload schema for the Task Template object
      required:
        - name
      properties:
        name:
          type: string
          description: A string that represents the Task Template object's name
        summary:
          type: string
          description: A string that represents the Task Template object's summary
        due_immediately:
          type: integer
          default: 0
          description: An integer that represents whether the Task Template object is due immediately or not. 0 is false and 1 is true.
    PriorityGet:
      type: object
      description: Priority object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Priority object's unique_id
        team:
          type: string
          description: A system-generated string that represents the Team object's unique_id
        description:
          type: string
          description: A string that represents the Priority object's description
        name:
          type: string
          description: A string that represents the Priority object's name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Priority object's creation_date
        color:
          type: string
          description: A string that represents the Priority object's color
    PriorityPostPut:
      type: object
      description: Priority object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Priority object's unique_id
        description:
          type: string
          description: A string that represents the Priority object's description
        name:
          type: string
          description: A string that represents the Priority object's name
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Priority object's creation_date
        color:
          type: string
          description: A string that represents the Priority object's color
        team:
          type: integer
          description: An integer that represents the Team object's id
    PriorityPayload:
      type: object
      description: Payload schema for the Priority object
      properties:
        name:
          type: string
          description: A string that represents the Priority object's name
        description:
          type: string
          description: A string that represents the Priority object's description
        color:
          type: string
          description: A string that represents the Priority object's color
    SLAGet:
      type: object
      description: SLA object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the SLA object's unique_id
        name:
          type: string
          description: An arbitary string that represents the SLA object's name
        is_active:
          type: boolean
          default: true
          description: A boolean flag that represents whether the SLA object is active or not
        acknowledge_time:
          type: integer
          description: An integer that represents the SLA object's acknowledge_time
        resolve_time:
          type: integer
          description: An integer that represents the SLA object's resolve_time
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the SLA object's creation_date
    SLAPostPut:
      type: object
      description: SLA object schema
      properties:
        escalations:
          type: array
          description: An array of SLA Escalation object
          items:
            $ref: '#/components/schemas/SLA_Escalation'
        unique_id:
          type: string
          description: A system-generated string that represents the SLA object's unique_id
        name:
          type: string
          description: An arbitary string that represents the SLA object's name
        description:
          type: string
          description: An arbitary string that represents the SLA object's description
        is_active:
          type: boolean
          default: true
          description: A boolean flag that represents whether the SLA object is active or not
        conditions:
          type: object
          description: Additional conditions object to create or update the SLA object
        acknowledge_time:
          type: integer
          description: An integer that represents the SLA object's acknowledge_time
        resolve_time:
          type: integer
          description: An integer that represents the SLA object's resolve_time
        team:
          type: integer
          description: An integer that respresents the Team object's id
    SLAPayload:
      type: object
      description: Payload schema for the SLA object
      required:
        - escalations
      properties:
        name:
          type: string
          description: An arbitary string that represents the SLA object's name
        escalations:
          type: array
          description: An array of SLA Escalation objects
          items:
            $ref: '#/components/schemas/SLA_Escalation'
        is_active:
          type: boolean
          default: true
          description: A boolean flag that represents whether the SLA object is active or not
        acknowledge_time:
          type: integer
          description: An integer that represents the SLA object's acknowledge_time
        resolve_time:
          type: integer
          description: An integer that represents the SLA object's resolve_time
    TMM:
      type: object
      description: Team Maintenance Mode object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Team Maintenance Mode object's unique_id
        start_time:
          type: string
          format: date-time
          description: A formatted string that represents the Team Maintenance Mode object's start_time
        end_time:
          type: string
          format: date-time
          description: A formatted string that represents the Team Maintenance Mode object's end_time
        repeat_interval:
          type: integer
          default: 0
          description: An integer that represents the Team Maintenance Mode object's repeat_interval
        services:
          type: array
          description: Array of Service objects
          items:
            type: object
            description: Service object schema for Team Maintenance Mode object schema
            properties:
              unique_id:
                type: string
                description: A system-generated string that represents the Team Maintenance Mode Service object's unique_id
              service:
                type: string
                description: A system-generated string that represents the Service object's unique_id
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Team Maintenance Mode object's creation_date
        name:
          type: string
          description: A string that represents the Team Maintenance Mode object's name
        time_zone:
          type: string
          default: UTC
          description: 'A formatted string that represents the Team Maintenance Mode object''s time_zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        repeat_until:
          type: string
          format: date-time
          description: A formatted string that represents the Team Maintenance Mode object's repeat_until
    TMMPayload:
      type: object
      description: Payload schema for the Team Maintenance Mode object
      required:
        - start_time
        - end_time
        - services
      properties:
        start_time:
          type: string
          format: date-time
          description: A formatted string that represents the Team Maintenance Mode object's start_time
        end_time:
          type: string
          format: date-time
          description: A formatted string that represents the Team Maintenance Mode object's end_time
        repeat_interval:
          type: integer
          default: 0
          description: An integer that represents the Team Maintenance Mode object's repeat_interval
        services:
          type: array
          description: Array of Service objects
          items:
            type: object
            description: Service object schema for Team Maintenance Mode object schema
            properties:
              service:
                type: string
                description: A system-generated string that represents the Service object's unique_id
        name:
          type: string
          description: A string that represents the Team Maintenance Mode object's name
        time_zone:
          type: string
          default: UTC
          description: 'A formatted string that represents the Team Maintenance Mode object''s time_zone. You can check out the time zone list here https://timezonedb.com/time-zones'
        repeat_until:
          type: string
          format: date-time
          description: A formatted string that represents the Team Maintenance Mode object's repeat_until
    PostmortemGet:
      type: object
      description: Postmortem object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Postmortem object's unique_id
        author:
          type: string
          description: A system-generated string that represents the User object's username
        status:
          type: string
          description: A string that represents the Postmortem object's status
        postmortem_data:
          type: string
          description: A string that represents the Postmortem object's postmortem_data
        incidents:
          type: array
          description: An array of Postmortem Incident objects
          items:
            type: object
            description: Postmortem Incident object schema
            properties:
              unique_id:
                type: string
                description: A system-generated string that represents the Postmortem Incident object's unique_id
              incident:
                type: object
                description: Incident object schema for a Postmortem object schema
                properties:
                  unique_id:
                    type: string
                    description: A system-generated string that represents the Incident object's unique_id
                  title:
                    type: string
                    description: A string that represents the Incident object's title
                  incident_number:
                    type: integer
                    description: An integer that represents the Incident object's incident_number
        author_name:
          type: string
          description: A string that represents the User object's full name
        title:
          type: string
          description: A string that represents the Postmortem object's title
        download_status:
          type: integer
          default: 0
          description: 'An integer that represents the Postmortem object''s download_status. 1 is uninitiated, 2 is initiated, 3 is finished and 4 is error'
        amazon_link:
          type: string
          description: An hyperlink string to AWS
        creation_date:
          type: string
          format: date-time
          description: A formatted string that represents the Postmortem object's creation_date
    PostmortemPostPut:
      type: object
      description: Postmortem object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Postmortem object's unique_id
        author:
          type: string
          description: A system-generated string that represents the User object's username
        status:
          type: string
          description: A string that represents the Postmortem object's status
        incidents:
          type: array
          description: An array of Postmortem Incident objects
          items:
            type: object
            description: Postmortem Incident object schema
            properties:
              unique_id:
                type: string
                description: A system-generated string that represents the Postmortem Incident object's unique_id
              incident:
                type: string
                description: A system-generated string that represents the Incident object's unique_id
        author_name:
          type: string
          description: A string that represents the User object's full name
        title:
          type: string
          description: A string that represents the Postmortem object's title
        postmortem_data:
          type: string
          description: A string that represents the Postmortem object's postmortem_data
        download_status:
          type: integer
          default: 0
          description: 'An integer that represents the Postmortem object''s download_status. 1 is uninitiated, 2 is initiated, 3 is finished and 4 is error'
    PostmortemPayload:
      type: object
      description: Payload schema for the Postmortem object
      required:
        - author
        - incidents
      properties:
        author:
          type: string
          description: A system-generated string that represents the User object's username
        status:
          type: string
          description: A string that represents the Postmortem object's status
        postmortem_data:
          type: string
          description: A string that represents the Postmortem object's postmortem_data
        incidents:
          type: array
          description: An array of Postmortem Incident objects
          items:
            type: object
            description: Postmortem Incident object schema
            properties:
              incident:
                type: object
                description: Incident object schema for a Postmortem object schema
                properties:
                  unique_id:
                    type: string
                    description: A system-generated string that represents the Incident object's unique_id
                  title:
                    type: string
                    description: A string that represents the Incident object's title
                  incident_number:
                    type: integer
                    description: An integer that represents the Incident object's incident_number
        title:
          type: string
          description: A string that represents the Postmortem object's title
        download_status:
          type: integer
          default: 0
          description: 'An integer that represents the Postmortem object''s download_status. 1 is uninitiated, 2 is initiated, 3 is finished and 4 is error'
    EscalationPolicyOnCallV1:
      type: object
      description: Team OnCall object schema v1
      properties:
        escalation_policy:
          type: object
          description: Escalation Policy object schema for OnCall object schema.
          properties:
            name:
              type: string
              description: A string that represents the Escalation Policy object's name
            summary:
              type: string
              description: A string that represents the Escalation Policy object's summary
            description:
              type: string
              description: A string that represents the Escalation Policy object's description
            unique_id:
              type: string
              description: A system-generated string that represents the Escalation Policy object's unique_id
            repeat_policy:
              type: integer
              description: An integer that represents the Escalation Policy object's repeat_policy
            move_to_next:
              type: boolean
              description: A boolean flag that represents whether to move to the next Escalation Policy Rule if no User is found within the Escalation Policy Rule
        team:
          type: object
          description: Team object schema for OnCall object schema
          properties:
            unique_id:
              type: string
              description: A system-generated string that represents the Team object's unique_id
            name:
              type: string
              description: A string that represents the Team object's name
        user:
          $ref: '#/components/schemas/User'
    EscalationPolicyOnCallV2:
      type: object
      description: Team OnCall object schema v2
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        name:
          type: string
          description: A string that represents the Escalation Policy object's name
        oncalls:
          type: array
          description: An array of Escalation Policy Rule OnCall objects
          items:
            $ref: '#/components/schemas/EscalationPolicyRuleOnCall'
    GlobalRouter:
      description: Global Router object schema
      type: object
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Global Router object's unique_id
        name:
          type: string
          description: A string that represents the Global Router object's name
        description:
          type: string
          description: A string that represents the Global Router object's description
        account:
          type: string
          description: A system-generated string that represents the Account object's unique_id
        is_enabled:
          type: boolean
          description: A boolean tag that represents weather the Global Router object's is enabled or not
        integration_key:
          type: string
          description: A system-generated string that represents the Integration object's integration_key
    GlobalRouterPayload:
      type: object
      description: Payload schema for the Global Router object
      properties:
        name:
          type: string
          description: A string that represents the Global Router object's name
        description:
          type: string
          description: A string that represents the Global Router object's description
    GlobalRouterRule:
      description: Global Router Rule object schema
      type: object
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Global Router Rule object's unique_id
        name:
          type: string
          description: A string that represents the Global Router Rule object's name
        position:
          type: integer
          description: An integer that represents the Global Router Rule object's position
        rule_json:
          type: string
          description: A string that represents the rule json of Global Router Rule object
        actions:
          type: array
          description: An array of Global Router Rule Action objects
          items:
            $ref: '#/components/schemas/GlobalRouterRuleAction'
        router:
          type: string
          description: A system-generated string that represents the Global Router object's unique_id
    GlobalRouterRulePayload:
      description: Payload schema for Global Router Rule object
      type: object
      properties:
        name:
          type: string
          description: A string that represents the Global Router Rule object's name
        rule_json:
          type: string
          description: A string that represents the rule json of Global Router Rule object
        actions:
          type: array
          description: An array of Global Router Rule Action objects
          items:
            $ref: '#/components/schemas/GlobalRouterRuleActionPayload'
    GlobalRouterRulePositionPayload:
      type: object
      description: Payload schema for the Global Router Rule position update object
      properties:
        rule:
          type: string
          description: A system generated string that represents the unique id of the Global Router Rule object
        position:
          type: integer
          description: An integer that represents that position of the Global Router Rule object
    AlertTransformer:
      type: object
      description: Alert Transformer Action object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Alert Transformer unique_id
        description:
          type: string
          description: A string that represents the Alert Transformer object's description
        actions:
          type: array
          description: An array of Alert Transformer Action objects
          items:
            $ref: '#/components/schemas/AlertTransformerAction'
        rule_json:
          type: string
          description: A string that represents the all the conditions of the alert rule
    AlertTransformerPayload:
      type: object
      description: Alert Transformer Action object payload schema
      properties:
        description:
          type: string
          description: A string that represents the Alert Transformer object's description
        actions:
          type: array
          description: An array of Alert Transformer Action objects
          items:
            $ref: '#/components/schemas/AlertTransformerActionPayload'
        rule_json:
          type: string
          description: A string that represents the all the conditions of the alert rule
    User:
      type: object
      description: User object schema
      properties:
        username:
          type: string
          description: A system-generated string that represents the User object's username
        first_name:
          type: string
          description: A string that represents the User object's first_name
        last_name:
          type: string
          description: A string that represents the User object's last_name
        email:
          type: string
          description: A string that represents the User object's email
    ScheduleLayer:
      type: object
      description: Schedule Layer object schema
      properties:
        shift_length:
          type: integer
          description: An integer that represents the Schedule Layer object's shift_length
        restrictions:
          type: array
          description: An array of Schedule Layer Restriction objects
          items:
            $ref: '#/components/schemas/ScheduleLayerRestriction'
        name:
          type: string
          description: A string that represents the Schedule Layer object's name
        users:
          type: array
          description: An array of Schedule Layer User objects
          items:
            $ref: '#/components/schemas/ScheduleLayerUser'
        rotation_start_time:
          type: string
          format: date-time
          description: A formatted string that represents the Schedule Layer object's rotation_start_time
        rotation_end_time:
          type: string
          format: date-time
          description: A formatted string that represents the Schedule Layer object's rotation_end_time
        unique_id:
          type: string
          description: A system-generated string that represents the Schedule Layer object's unique_id
        last_edited:
          type: string
          format: date-time
          description: A formatted string that represents the Schedule Layer object's last_edited
        restriction_type:
          type: integer
          description: 'An integer that represents Schedule Layer object''s restriction_type. 0 for no restriction, 1 for daily restrictions and 2 for weekly restrictions'
        is_active:
          type: boolean
          default: true
          description: A boolean flag that represents whether the Schedule Layer is active or not
    ScheduleLayerPayload:
      type: object
      description: Schedule Layer Payload object schema
      properties:
        shift_length:
          type: integer
          description: An integer that represents the Schedule Layer object's shift_length
        restrictions:
          type: array
          description: An array of Schedule Layer Restriction objects
          items:
            $ref: '#/components/schemas/ScheduleLayerRestrictionPayload'
        name:
          type: string
          description: A string that represents the Schedule Layer object's name
        users:
          type: array
          description: An array of Schedule Layer User objects
          items:
            $ref: '#/components/schemas/ScheduleLayerUserPayload'
        rotation_start_time:
          type: string
          format: date-time
          description: A formatted string that represents the Schedule Layer object's rotation_start_time
        rotation_end_time:
          type: string
          format: date-time
          description: A formatted string that represents the Schedule Layer object's rotation_end_time
        restriction_type:
          type: integer
          description: 'An integer that represents Schedule Layer object''s restriction_type. 0 for no restriction, 1 for daily restrictions and 2 for weekly restrictions'
    ScheduleLayerRestriction:
      type: object
      description: Schedule Layer Restriction object schema
      properties:
        duration:
          type: integer
          description: An integer that represents the Schedule Layer Restriction objects's duration in seconds
        start_day_of_week:
          type: integer
          description: An integer that represents the Schedule Layer Restriction objects's start_day_of_week. 0 is daily and 1-7 is sunday to saturday
        start_time_of_day:
          type: string
          format: time
          description: A formatted string that represents the Schedule Layer Restriction objects's start_time_of_day
        unique_id:
          type: string
          description: A system-generated string that represents the Schedule Layer Restriction objects's unique_id
    ScheduleLayerRestrictionPayload:
      type: object
      description: Schedule Layer Restriction Payload object schema
      properties:
        duration:
          type: integer
          description: An integer that represents the Schedule Layer Restriction objects's duration in seconds
        start_day_of_week:
          type: integer
          description: An integer that represents the Schedule Layer Restriction objects's start_day_of_week. 0 is daily and 1-7 is sunday to saturday
        start_time_of_day:
          type: string
          format: time
          description: A formatted string that represents the Schedule Layer Restriction objects's start_time_of_day
    ScheduleLayerUser:
      type: object
      description: Schedule Layer User object schema
      properties:
        user:
          type: string
          description: A system-generated string that represents the User object's username
        position:
          type: integer
          description: An integer that represents the Schedule Layer User objects's position
        unique_id:
          type: string
          description: A system-generated string that represents the Schedule Layer User objects's unique_id
    ScheduleLayerUserPayload:
      type: object
      description: Schedule Layer User Payload object schema
      properties:
        user:
          type: string
          description: A system-generated string that represents the User object's username
        position:
          type: integer
          description: An integer that represents the Schedule Layer User objects's position
    ScheduleOverride:
      type: object
      description: Schedule Override object schema
      properties:
        name:
          type: string
          description: A string that represents the Schedule Overrides object's name
        user:
          type: string
          description: A string that represents the User object's username
        start_time:
          type: string
          description: A fromatted string that represents the Schedule Overrides object's start_time
        end_time:
          type: string
          description: A fromatted string that represents the Schedule Overrides object's end_time
        unique_id:
          type: string
          description: A system-generated string that represents the Schedule Overrides object's unique_id
    ScheduleOverridePayload:
      type: object
      description: Schedule Override Payload object schema
      properties:
        name:
          type: string
          description: A string that represents the Schedule Overrides object's name
        user:
          type: string
          description: A string that represents the User object's username
        start_time:
          type: string
          description: A fromatted string that represents the Schedule Overrides object's start_time
        end_time:
          type: string
          description: A fromatted string that represents the Schedule Overrides object's end_time
    EP_Rule:
      type: object
      description: Escalation Policy Rule object schema
      required:
        - delay
      properties:
        delay:
          type: integer
          default: 0
          description: 'An integer that represents the amount of time before the escalation of the Escalation Policy object after the incident object is created. For example, t=0 is When an incident is created, if delay=5, then this Escalation Policy Rule object will be escalated at t=5.'
        target:
          type: object
          description: Escalation Policy Rule Target object schema
          properties:
            target_type:
              type: integer
              description: An integer that represents the Escalation Policy Rule Target object's target_type. 1 for Schedule and 2 for User
            target_id:
              type: string
              description: A system-generated string that represents Escalation Policy Rule Target object's target_id. If target_type is 1 then target_id is Schedule object's unique_id and if target_type is 2 then target_id is User object's username
        position:
          type: integer
          description: An integer that represents the Escalation Policy Rule object's position
        unique_id:
          type: string
          description: A system-generated string that represents Escalation Policy Rule object's unique_id.
    EP_RulePayload:
      type: object
      description: Escalation Policy Rule Payload object schema
      required:
        - delay
      properties:
        delay:
          type: integer
          default: 0
          description: 'An integer that represents the amount of time before the escalation of the Escalation Policy object after the incident object is created. For example, t=0 is When an incident is created, if delay=5, then this Escalation Policy Rule object will be escalated at t=5.'
        target:
          type: object
          description: Escalation Policy Rule Target object schema
          properties:
            target_type:
              type: integer
              description: An integer that represents the Escalation Policy Rule Target object's target_type. 1 for Schedule and 2 for User
            target_id:
              type: string
              description: A system-generated string that represents Escalation Policy Rule Target object's target_id. If target_type is 1 then target_id is Schedule object's unique_id and if target_type is 2 then target_id is User object's username
        position:
          type: integer
          description: An integer that represents the Escalation Policy Rule object's position
    Application:
      description: Application object schema
      type: object
      properties:
        name:
          type: string
          description: A string that represents Application object's name
        icon_url:
          type: string
          description: A string that represents Application object's icon_url
        summary:
          type: string
          description: A string that represents Application object's summary
        description:
          type: string
          description: A string that represents Application object's description
        unique_id:
          type: string
          description: A system-generated string that represents Application object's unique_id
        availability_plan_id:
          type: integer
          description: An integer that represents Application object's availability_plan_id
        setup_instructions:
          type: string
          description: A string that represents Application object's setup_instructions
        extension:
          type: string
          description: A string that represents Application object's extension
        application_type:
          type: integer
          description: An integer that represents Application object's application_type 0 for alert and 1 for outbound
        categories:
          type: string
          description: A string that represents Application object's categories
        documentation_link:
          type: string
          description: A string that represents Application object's documentation_link
    SLA_Escalation:
      type: object
      description: SLA Escalation object schema
      properties:
        responder:
          type: array
          description: An array of Responder objects
          items:
            type: object
            description: Responder object schema
            properties:
              user:
                type: string
                description: A system-generated string that represents the User object's username
        unique_id:
          type: string
          description: A system-generated string that represents the SLA Escalation object's unique_id
        time:
          type: integer
          description: An integer that represents the SLA Escalation object's time. The value will be -ve before sla breach and +ve after sla breach
        type:
          type: integer
          description: An integer that represents the SLA Escalation object's type. 1 for acknowledge SLA escalation and 2 for resolve SLA escalation
    EventImage:
      type: object
      description: Event Image object schema
      properties:
        image_src:
          type: string
          description: A string that represents the Event Image object's image_src
        image_url:
          type: string
          description: A string that represents the Event Image object's image_url
        image_text:
          type: string
          description: A string that represents the Event Image object's image_text
    EventUrl:
      type: object
      description: Event URL object schema
      properties:
        link_url:
          type: string
          description: A string that represents the Event URL object's link_url
        link_text:
          type: string
          description: A string that represents the Event URL object's link_text
    EventNote:
      type: object
      description: Event Note object schema
      properties:
        note_title:
          type: string
          description: A string that represents the Event Note object's note_title
        note_text:
          type: string
          description: A string that represents the Event Note object's note_text
    GlobalRouterRuleAction:
      type: object
      description: Global Router Rule Action object schema
      properties:
        unique_id:
          type: string
          description: A system generated string that represents the unique id of Global Router Rule object
        action_type:
          type: integer
          description: An integer that represents the action type of the Global Router Rule Action object
        service:
          type: object
          description: Service object for Global Router Rule Action object
          properties:
            name:
              type: string
              description: A string that represents name of the Service object
            unique_id:
              type: string
              description: A system generated string that represents the unique_id of the Service object
        team:
          type: object
          description: Team object for Global Router Rule Action object
          properties:
            name:
              type: string
              description: A string that represents name of the Team object
            unique_id:
              type: string
              description: A system generated string that represents the unique_id of the Team object
        integration_obj:
          type: object
          description: Integration object for Global Router Rule Action object
          properties:
            name:
              type: string
              description: A string that represents name of the Integration object
            unique_id:
              type: string
              description: A system generated string that represents the unique_id of the Integration object
    GlobalRouterRuleActionPayload:
      type: object
      description: Payload schema for Global Router Rule Action object
      properties:
        action_type:
          type: integer
          description: An integer that represents the action type of the Global Router Rule Action object
        integration:
          type: string
          description: A system generated string that represents the unique id of the integration object
    EscalationPolicyRuleOnCall:
      type: object
      description: Escalation Policy OnCall object schema
      properties:
        ep_rule:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        position:
          type: integer
          description: An integer that represents the Escalation Policy Rule object's position in an Escalation Policy
        delay:
          type: integer
          description: An integer that represents the Escalation Policy Rule object's delay in an Escalation Policy
        oncalls:
          type: array
          description: An array of User objects who is on call in an Escalation Policy Rule
          items:
            $ref: '#/components/schemas/User'
    AlertTransformerAction:
      type: object
      description: Alert Transformer Action object schema
      properties:
        unique_id:
          type: string
          description: A system-generated string that represents the Alert Transformer Action object's unique_id
        action_type:
          type: integer
          description: An integer that represents the Alert Transformer Action object's action_type in an Alert Rule
        key:
          type: string
          description: A string that represents the Alert Transformer Action object's key
        value:
          type: string
          description: A system-generated string that represents the User object username or Schedule object unique_id
        value_reference_name:
          type: string
          description: A string that represents the name of the responder(user or schedule)
        escalation_policy:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        escalation_policy_name:
          type: string
          description: A string that represents the Escalation Policy object's name
        assign_to:
          type: string
          description: A system-generated string that represents the User object's username
        assign_to_name:
          type: string
          description: A string that represents the name of the assignee
        schedule:
          type: string
          description: A system-generated string that represents the Schedule object's unique_id
        sla:
          type: string
          description: A system-generated string that represents the Team SLA object's unique_id
        team_priority:
          type: string
          description: A system-generated string that represents the Team Priority object's unique_id
        task_template:
          type: string
          description: A system-generated string that represents the Task Template object's unique_id
    AlertTransformerActionPayload:
      type: object
      description: Alert Transformer Action payload object schema
      properties:
        action_type:
          type: integer
          description: An integer that represents the Alert Transformer Action object's action_type in an Alert Rule
        key:
          type: string
          description: A string that represents the Alert Transformer Action object's key
        value:
          type: string
          description: A system-generated string that represents the User object username or Schedule object unique_id
        value_reference_name:
          type: string
          description: A string that represents the name of the responder(user or schedule)
        escalation_policy:
          type: string
          description: A system-generated string that represents the Escalation Policy object's unique_id
        escalation_policy_name:
          type: string
          description: A string that represents the Escalation Policy object's name
        assign_to:
          type: string
          description: A system-generated string that represents the User object's username
        assign_to_name:
          type: string
          description: A string that represents the name of the assignee
        schedule:
          type: string
          description: A system-generated string that represents the Schedule object's unique_id
        sla:
          type: string
          description: A system-generated string that represents the Team SLA object's unique_id
        team_priority:
          type: string
          description: A system-generated string that represents the Team Priority object's unique_id
        task_template:
          type: string
          description: A system-generated string that represents the Task Template object's unique_id
  headers:
    ExpiresAfter:
      description: date in UTC when token expires
      schema:
        type: string
        format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Token <api_key>
