openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SDOK_M_CXCL_ATTRS_ASSIGN:
    post:
      tags:
      - SDC_MODEL
      operationId: /rfc/SDOK_M_CXCL_ATTRS_ASSIGN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASS:
                  type: object
                  properties:
                    CX_CLASS:
                      type: string
                      maxLength: 30
                      description: 'Model: Entity Name'
                    VERSION:
                      type: string
                      maxLength: 1
                      description: 'Model: Entity Version  enumValues: 0=Active,9=Inactive,""=Active/Inactive,2=Deleted,1=Transport'
                      enum:
                      - '0'
                      - '9'
                      - ''
                      - '2'
                      - '1'
                X_ONLY_CHECK:
                  type: string
                  default: ' '
                  maxLength: 1
                X_REPLACE:
                  type: string
                  default: ' '
                  maxLength: 1
                ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Model: Selector type  enumValues: P=PHIO class,p=PHIO'
                        enum:
                        - P
                        - p
                      ATTRIBUTE:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      X_OBLIGAT:
                        type: string
                        maxLength: 1
                        description: 'Attribute must be evaluated  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      X_UNIQUE:
                        type: string
                        maxLength: 1
                        description: 'Attribute must be evaluated as a unique attribute  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      X_MAINTAIN:
                        type: string
                        maxLength: 1
                        description: 'Attribute can be displayed to end users for maintenance  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      X_HIDDEN:
                        type: string
                        maxLength: 1
                        description: 'Attribute should not be displayed to end users  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      X_CUSTOM:
                        type: string
                        maxLength: 1
                        description: 'Model: Customizing property  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                BAD_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRIBUTE:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      ERR:
                        type: integer
                        format: int64
                        description: 'Model: Error code for attribute check  enumValues: 53=Invalid Assignment Property,54=Invalid Selector Type,52=Inconsistency with Inherited Attribute Assignment,50=Invalid Attribute,51=Multiple Attribute'
                        enum:
                        - '53'
                        - '54'
                        - '52'
                        - '50'
                        - '51'
                PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Model: Selector type  enumValues: P=PHIO class,p=PHIO'
                        enum:
                        - P
                        - p
                      ATTRIBUTE:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      PROP_NAME:
                        type: string
                        maxLength: 25
                        description: 'Model: Attribute for an attribute assignment'
                      PROP_VALUE:
                        type: string
                        maxLength: 64
                        description: Attribute Value
              required:
              - CLASS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Model: Selector type  enumValues: P=PHIO class,p=PHIO'
                          enum:
                          - P
                          - p
                        ATTRIBUTE:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        X_OBLIGAT:
                          type: string
                          maxLength: 1
                          description: 'Attribute must be evaluated  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        X_UNIQUE:
                          type: string
                          maxLength: 1
                          description: 'Attribute must be evaluated as a unique attribute  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        X_MAINTAIN:
                          type: string
                          maxLength: 1
                          description: 'Attribute can be displayed to end users for maintenance  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        X_HIDDEN:
                          type: string
                          maxLength: 1
                          description: 'Attribute should not be displayed to end users  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        X_CUSTOM:
                          type: string
                          maxLength: 1
                          description: 'Model: Customizing property  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                  BAD_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRIBUTE:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        ERR:
                          type: integer
                          format: int64
                          description: 'Model: Error code for attribute check  enumValues: 53=Invalid Assignment Property,54=Invalid Selector Type,52=Inconsistency with Inherited Attribute Assignment,50=Invalid Attribute,51=Multiple Attribute'
                          enum:
                          - '53'
                          - '54'
                          - '52'
                          - '50'
                          - '51'
                  PROPERTIES:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Model: Selector type  enumValues: P=PHIO class,p=PHIO'
                          enum:
                          - P
                          - p
                        ATTRIBUTE:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        PROP_NAME:
                          type: string
                          maxLength: 25
                          description: 'Model: Attribute for an attribute assignment'
                        PROP_VALUE:
                          type: string
                          maxLength: 64
                          description: Attribute Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
