openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_PHIO_CREATE_NEW_VERSION:
    post:
      tags:
      - SDCL
      summary: Create a New Version of a Physical Document
      operationId: /rfc/SDOK_PHIO_CREATE_NEW_VERSION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                NEW_STOR_CAT_REQ:
                  type: string
                  maxLength: 10
                  description: Requested Category for New Version
                OBJECT_UNIQUE_ID:
                  type: string
                  maxLength: 32
                  description: BOR Key of Old Object
                OLD_OBJECT_ID:
                  type: object
                  properties:
                    CLASS:
                      type: string
                      maxLength: 10
                      description: Document class
                    OBJID:
                      type: string
                      maxLength: 32
                      description: ID for documents and relations
                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)
              required:
              - OLD_OBJECT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_OBJECT_ID:
                    type: object
                    properties:
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                  NEW_STOR_CAT:
                    type: string
                    maxLength: 10
                    description: Category for New PHIO
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
