openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IWB_STRUCTURE_IMPORT:
    post:
      tags:
      - SI62
      summary: Import structure object
      operationId: /rfc/IWB_STRUCTURE_IMPORT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BAD_OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      ERROR_KEY:
                        type: integer
                        format: int64
                        description: 'Error code  enumValues: 03=Missing Entries,04=Name conflict,02=Operation not permitted,06=No authorization,00=Document class not known,01=Object does not exist,05=Error when transferring data'
                        enum:
                        - '03'
                        - '04'
                        - '02'
                        - '06'
                        - '00'
                        - '01'
                        - '05'
                OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      DOC_FORMAT:
                        type: string
                        maxLength: 4
                        description: Document format (TEXT, TIFF, RTF, PDF, ...)
                      DOC_FMTVER:
                        type: string
                        maxLength: 10
                        description: Document format version
                      FILE_SIZE:
                        type: integer
                        format: int64
                        description: File size (in bytes)
                      FILE_NAME:
                        type: string
                        maxLength: 255
                        description: Relative storage location of physical document
                      DIRECTORY:
                        type: string
                        maxLength: 255
                        description: Directory on target computer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BAD_OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        ERROR_KEY:
                          type: integer
                          format: int64
                          description: 'Error code  enumValues: 03=Missing Entries,04=Name conflict,02=Operation not permitted,06=No authorization,00=Document class not known,01=Object does not exist,05=Error when transferring data'
                          enum:
                          - '03'
                          - '04'
                          - '02'
                          - '06'
                          - '00'
                          - '01'
                          - '05'
                  OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        DOC_FORMAT:
                          type: string
                          maxLength: 4
                          description: Document format (TEXT, TIFF, RTF, PDF, ...)
                        DOC_FMTVER:
                          type: string
                          maxLength: 10
                          description: Document format version
                        FILE_SIZE:
                          type: integer
                          format: int64
                          description: File size (in bytes)
                        FILE_NAME:
                          type: string
                          maxLength: 255
                          description: Relative storage location of physical document
                        DIRECTORY:
                          type: string
                          maxLength: 255
                          description: Directory on target computer
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
