openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPS_DROPALL:
    post:
      tags:
      - PH1S
      operationId: /rfc/SPS_DROPALL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXT:
                  type: string
                  maxLength: 30
                EXTCALLS:
                  type: array
                  items:
                    type: object
                    properties:
                      HANDLE:
                        type: string
                        maxLength: 32
                        description: Call identifier assigned by WS software
                      STATE:
                        type: integer
                        format: int64
                        description: 'SAPphone: Call status  enumValues: 01=Initiated,00=Unknown,03=Connected,04=On hold,06=Failed,02=Ringing,05=In queue,07=Offered'
                        enum:
                        - '01'
                        - '00'
                        - '03'
                        - '04'
                        - '06'
                        - '02'
                        - '05'
                        - '07'
                      PARTY:
                        type: string
                        maxLength: 30
                        description: Telephone number
                      PTYPE:
                        type: string
                        maxLength: 1
                        description: 'SAPphone: Type of call partner (internal/external)  enumValues: I=Internal,E=External'
                        enum:
                        - I
                        - E
                      DNIS:
                        type: string
                        maxLength: 30
                        description: Telephone number
              required:
              - EXT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERR_TEXT:
                    type: string
                    maxLength: 80
                  RETURNCODE:
                    type: string
                    maxLength: 4
                  SYSTEM_RC_X:
                    type: string
                    maxLength: 10
                  EXTCALLS:
                    type: array
                    items:
                      type: object
                      properties:
                        HANDLE:
                          type: string
                          maxLength: 32
                          description: Call identifier assigned by WS software
                        STATE:
                          type: integer
                          format: int64
                          description: 'SAPphone: Call status  enumValues: 01=Initiated,00=Unknown,03=Connected,04=On hold,06=Failed,02=Ringing,05=In queue,07=Offered'
                          enum:
                          - '01'
                          - '00'
                          - '03'
                          - '04'
                          - '06'
                          - '02'
                          - '05'
                          - '07'
                        PARTY:
                          type: string
                          maxLength: 30
                          description: Telephone number
                        PTYPE:
                          type: string
                          maxLength: 1
                          description: 'SAPphone: Type of call partner (internal/external)  enumValues: I=Internal,E=External'
                          enum:
                          - I
                          - E
                        DNIS:
                          type: string
                          maxLength: 30
                          description: Telephone number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
