openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MEMGMT_DEVICE_USER_ASSIGNMENT:
    post:
      tags:
      - MEMGMT_DEVICE
      summary: Checks for consistency of Hierarchy groups of users on single device
      operationId: /rfc/MEMGMT_DEVICE_USER_ASSIGNMENT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_MODE:
                  type: string
                  maxLength: 20
                  description: Char 20
                I_NODE_ID_HG:
                  type: string
                  maxLength: 36
                  description: Unique hierarchy node ID
                I_USER_NEW:
                  type: string
                  maxLength: 36
                  description: 'ME: Hierarchy value'
                I_USER_ON_DEVICE:
                  type: string
                  maxLength: 36
                  description: 'ME: Hierarchy value'
              required:
              - I_MODE
              - I_NODE_ID_HG
              - I_USER_NEW
              - I_USER_ON_DEVICE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_DEVICE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DEPLID:
                          type: string
                          maxLength: 36
                          description: Unique ID of Synchronization Container
                        USERNAME:
                          type: string
                          maxLength: 12
                          description: User Name in User Master Record
                        DEVICE_ID_TXT:
                          type: string
                          maxLength: 128
                          description: Define text for device ID
                  E_NODE_NAME:
                    type: string
                    maxLength: 255
                    description: 'ME: Hierarchy node description'
                  E_NODE_TO_BE_ASSIGNED_TO:
                    type: string
                    maxLength: 36
                    description: Unique hierarchy node ID
                  E_STATUS:
                    type: string
                    maxLength: 20
                    description: Char 20
                  E_USER_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        BNAME:
                          type: string
                          maxLength: 12
                          description: User Name in User Master Record
                        NAME_TEXT:
                          type: string
                          maxLength: 80
                          description: Full Name of Person
                        ORGFLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag: Assignment Comes From HR Organization Management'
                        NAME1:
                          type: string
                          maxLength: 30
                          description: Name of user within the company
                        NAME2:
                          type: string
                          maxLength: 30
                          description: Name of user within the company
                        NODE_ID:
                          type: string
                          maxLength: 36
                          description: Unique hierarchy node ID
                        TEXT:
                          type: string
                          maxLength: 255
                          description: 'ME: Hierarchy node description'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
