openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_CUSPRO_WRITESCOPE:
    post:
      tags:
      - BEPROJECT
      summary: Write project scope and enhancementsn
      operationId: /rfc/BAPI_CUSPRO_WRITESCOPE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PROJECT:
                  type: string
                  maxLength: 10
                  description: Project name
                EXTENSIONHEADERS:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      PAR_STRUCT:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      PRED_NODE:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      POSITION:
                        type: string
                        maxLength: 1
                        description: 'Position of node to be inserted  enumValues: C=as subnode,B=on the same level'
                        enum:
                        - C
                        - B
                EXTENSIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      PNODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      SEQUENCE:
                        type: integer
                        format: int32
                        description: Sequential number
                      NODE_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Node Types in Structure Repository
                      NAME:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                      FROM_OBJ:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      REF_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Reference Types in Structure Repository
                      REF_OBJECT:
                        type: string
                        maxLength: 32
                        description: Link ID
                      IMG_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      TREE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      RTREE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      RNODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      RMODE:
                        type: string
                        maxLength: 1
                        description: 'Reference Mode  enumValues: X=Structure referred to (included),""=Node copied with reference to its original'
                        enum:
                        - X
                        - ''
                      LEAF:
                        type: string
                        maxLength: 1
                        description: 'Data element for Flag - Any use  enumValues: ""=Attribute does not apply,X=Attribute applies'
                        enum:
                        - ''
                        - X
                      IBU:
                        type: string
                        maxLength: 1
                        description: 'Data element for Flag - Any use  enumValues: ""=Attribute does not apply,X=Attribute applies'
                        enum:
                        - ''
                        - X
                      PROC_COMP:
                        type: string
                        maxLength: 20
                        description: Object definition
                      IN_SCOPE:
                        type: string
                        maxLength: 1
                        description: 'Data element for Flag - Any use  enumValues: ""=Attribute does not apply,X=Attribute applies'
                        enum:
                        - ''
                        - X
                SCOPE:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
              required:
              - PROJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXTENSIONHEADERS:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        PAR_STRUCT:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        PRED_NODE:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        POSITION:
                          type: string
                          maxLength: 1
                          description: 'Position of node to be inserted  enumValues: C=as subnode,B=on the same level'
                          enum:
                          - C
                          - B
                  EXTENSIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        PNODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        SEQUENCE:
                          type: integer
                          format: int32
                          description: Sequential number
                        NODE_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Node Types in Structure Repository
                        NAME:
                          type: string
                          maxLength: 75
                          description: Explanatory text
                        FROM_OBJ:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        REF_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Reference Types in Structure Repository
                        REF_OBJECT:
                          type: string
                          maxLength: 32
                          description: Link ID
                        IMG_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        TREE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        RTREE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        RNODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        RMODE:
                          type: string
                          maxLength: 1
                          description: 'Reference Mode  enumValues: X=Structure referred to (included),""=Node copied with reference to its original'
                          enum:
                          - X
                          - ''
                        LEAF:
                          type: string
                          maxLength: 1
                          description: 'Data element for Flag - Any use  enumValues: ""=Attribute does not apply,X=Attribute applies'
                          enum:
                          - ''
                          - X
                        IBU:
                          type: string
                          maxLength: 1
                          description: 'Data element for Flag - Any use  enumValues: ""=Attribute does not apply,X=Attribute applies'
                          enum:
                          - ''
                          - X
                        PROC_COMP:
                          type: string
                          maxLength: 20
                          description: Object definition
                        IN_SCOPE:
                          type: string
                          maxLength: 1
                          description: 'Data element for Flag - Any use  enumValues: ""=Attribute does not apply,X=Attribute applies'
                          enum:
                          - ''
                          - X
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  SCOPE:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
