openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IQAPI_BUILD_NEW_QUERY_NAME:
    post:
      tags:
      - IQAPI_CATALOG
      operationId: /rfc/IQAPI_BUILD_NEW_QUERY_NAME
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OLD_QUERY:
                  type: string
                  maxLength: 14
                  description: 'SAP Query (S): Query Name'
                OLD_USERGROUP:
                  type: string
                  maxLength: 12
                  description: 'SAP Query (S): Name of a user group'
                WORKSPACE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'SAP Query (S): Work Area ID'
              required:
              - OLD_QUERY
              - OLD_USERGROUP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_QUERY:
                    type: string
                    maxLength: 30
                    description: 'InfoSet Query: Query Name'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
