openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_RELA_CREATE_FROM_CLASS:
    post:
      tags:
      - SDCL
      operationId: /rfc/SDOK_RELA_CREATE_FROM_CLASS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                FROM_CLASS:
                  type: string
                  maxLength: 10
                RELATION_CLASS:
                  type: string
                  maxLength: 10
                  description: Relationship class
                RELATION_UNIQUE_ID:
                  type: string
                  maxLength: 32
                  description: Unique Object Identification
                TO_OBJECT:
                  type: object
                  properties:
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
              required:
              - FROM_CLASS
              - RELATION_CLASS
              - TO_OBJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  OBJECT_ID:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
