openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SO_ATTACHMENT_UPDATE_API1:
    post:
      tags:
      - SOI1
      summary: 'SAPoffice: Change attachment using RFC'
      operationId: /rfc/SO_ATTACHMENT_UPDATE_API1
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ATTACHMENT_DATA:
                  type: object
                  properties:
                    OBJ_NAME:
                      type: string
                      maxLength: 12
                      description: Name of document, folder or distribution list
                    OBJ_DESCR:
                      type: string
                      maxLength: 50
                      description: Short description of contents
                    OBJ_LANGU:
                      type: string
                      maxLength: 1
                      description: Language in Which Document Is Created
                    ATT_SIZE:
                      type: string
                      maxLength: 12
                      description: Size of attachment
                ATTACHMENT_ID:
                  type: string
                  maxLength: 63
                  description: ID of attachment to be changed
                ATTACHMENT_CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: 'Text field length 255: texts'
                ATTACHMENT_HEADER:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: 'Text field length 255: texts'
                CONTENTS_HEX:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: 'SAPoffice: Binary data, length 255'
              required:
              - ATTACHMENT_DATA
              - ATTACHMENT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ATTACHMENT_INFO:
                    type: object
                    properties:
                      ATTACH_ID:
                        type: string
                        maxLength: 63
                        description: ID of an attachment for the API
                      ATTACH_TYP:
                        type: string
                        maxLength: 3
                        description: Object type of an attachment
                      ATT_NAME:
                        type: string
                        maxLength: 12
                        description: Name of document, folder or distribution list
                      ATT_DESCR:
                        type: string
                        maxLength: 50
                        description: Short description of contents
                      ATT_LANGU:
                        type: string
                        maxLength: 1
                        description: Language in Which Document Is Created
                      ATT_SORT:
                        type: string
                        maxLength: 10
                        description: Sort field
                      OBJECT_ID:
                        type: string
                        maxLength: 17
                        description: 'SAPoffice: ID of a SAPoffice object'
                      CREATOR_ID:
                        type: string
                        maxLength: 17
                        description: 'SAPoffice: ID of the creator of an object or user'
                      CREAT_NAME:
                        type: string
                        maxLength: 12
                        description: Creator Name
                      CREAT_FNAM:
                        type: string
                        maxLength: 35
                        description: 'SAPoffice: Full name of creator'
                      CREAT_DATE:
                        type: string
                        format: date
                        description: 'SAPoffice: Date when object/user was created'
                      CREAT_TIME:
                        type: string
                        maxLength: 6
                        description: 'SAPoffice: Time when object/user was created'
                      CHANGER_ID:
                        type: string
                        maxLength: 17
                        description: 'SAPoffice: Last changed by: ID'
                      CHANG_NAME:
                        type: string
                        maxLength: 12
                        description: Changed by
                      CHANG_FNAM:
                        type: string
                        maxLength: 35
                        description: 'SAPoffice: Last changed by: Full name'
                      CHANG_DATE:
                        type: string
                        format: date
                        description: 'SAPoffice: Date object/user was last changed'
                      CHANG_TIME:
                        type: string
                        maxLength: 6
                        description: 'SAPoffice: Time when object/user was last changed'
                      OWNER_ID:
                        type: string
                        maxLength: 17
                        description: ID of the owner of the document
                      OWNER_NAM:
                        type: string
                        maxLength: 12
                        description: Name of document owner
                      OWNER_FNAM:
                        type: string
                        maxLength: 35
                        description: Full name of the owner
                      LAST_ACCES:
                        type: string
                        format: date
                        description: Date of last access
                      OBJ_EXPDAT:
                        type: string
                        format: date
                        description: Expiration date of object
                      SENSITIVTY:
                        type: string
                        maxLength: 1
                        description: 'Object: Sensitivity (private, functional, ...)  enumValues: F=Functional,O=Standard,P=Confidential'
                        enum:
                        - F
                        - O
                        - P
                      OBJ_PRIO:
                        type: string
                        maxLength: 1
                        description: 'Document priority  enumValues: 8=,9=Lowest priority,1=Highest priority'
                        enum:
                        - '8'
                        - '9'
                        - '1'
                      NO_CHANGE:
                        type: string
                        maxLength: 1
                        description: 'Document cannot be changed  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      ATT_SIZE:
                        type: string
                        maxLength: 12
                        description: Size of attachment
                  ATTACHMENT_CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: 'Text field length 255: texts'
                  ATTACHMENT_HEADER:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: 'Text field length 255: texts'
                  CONTENTS_HEX:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: 'SAPoffice: Binary data, length 255'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
