openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWF_RELA_CREATE:
    post:
      tags:
      - SKWF_IO
      operationId: /rfc/SKWF_RELA_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASS:
                  type: string
                  maxLength: 10
                  description: Document Class
                FROM_OBJECT:
                  type: object
                  properties:
                    OBJTYPE:
                      type: string
                      maxLength: 1
                      description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                      enum:
                      - R
                      - L
                      - P
                      - ''
                      - F
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                PTYPE:
                  type: integer
                  format: int64
                  description: 'KW Framework: Storage Type of Attribute'
                TO_OBJECT:
                  type: object
                  properties:
                    OBJTYPE:
                      type: string
                      maxLength: 1
                      description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                      enum:
                      - R
                      - L
                      - P
                      - ''
                      - F
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                UNIQUE_ID:
                  type: string
                  maxLength: 32
                  description: Logical information object
                X_STRICT:
                  type: string
                  maxLength: 1
                X_SUPPRESS_PARTNER_CHECK:
                  type: string
                  maxLength: 1
                PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      VALUE:
                        type: string
                        maxLength: 64
                        description: Attribute Value
              required:
              - CLASS
              - FROM_OBJECT
              - TO_OBJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      'NO':
                        type: integer
                        format: int64
                        description: Message Number
                      V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  RELA:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 1
                        description: 'KW Framework: IO type  enumValues: R=Relationship,L=LOIO,P=PHIO,""=Undefined (= all),F=Directory'
                        enum:
                        - R
                        - L
                        - P
                        - ''
                        - F
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                  PROPERTIES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        VALUE:
                          type: string
                          maxLength: 64
                          description: Attribute Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
