openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_PHIO_CREATE:
    post:
      tags:
      - SDCL
      summary: Create a Physical Document
      operationId: /rfc/SDOK_PHIO_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                OBJECT_CLASS:
                  type: string
                  maxLength: 10
                  description: Object Class
                OBJECT_UNIQUE_ID:
                  type: string
                  maxLength: 32
                  description: Unique Object Identification
                X_ENQUEUE:
                  type: string
                  maxLength: 1
                  description: Flag for Locking New Document
                X_SUPPRESS_PARTNER_CHECK:
                  type: string
                  maxLength: 1
                  description: (Only for Internal Use)
                FROM_RELATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      REIO_ID:
                        type: string
                        maxLength: 32
                        description: Relationship between logical and physical documents
                      RE_CLASS:
                        type: string
                        maxLength: 10
                        description: Relationship class
                      PRTN_ID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      PRTN_CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                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
                TO_RELATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      REIO_ID:
                        type: string
                        maxLength: 32
                        description: Relationship between logical and physical documents
                      RE_CLASS:
                        type: string
                        maxLength: 10
                        description: Relationship class
                      PRTN_ID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      PRTN_CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
      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
                  FROM_RELATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        REIO_ID:
                          type: string
                          maxLength: 32
                          description: Relationship between logical and physical documents
                        RE_CLASS:
                          type: string
                          maxLength: 10
                          description: Relationship class
                        PRTN_ID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        PRTN_CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                  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
                  TO_RELATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        REIO_ID:
                          type: string
                          maxLength: 32
                          description: Relationship between logical and physical documents
                        RE_CLASS:
                          type: string
                          maxLength: 10
                          description: Relationship class
                        PRTN_ID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        PRTN_CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
