openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWK_TASK_CREATE:
    post:
      tags:
      - SWK4
      operationId: /rfc/SWK_TASK_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IM_DEVCLASS:
                  type: string
                  maxLength: 30
                IM_KORRNUM:
                  type: string
                  maxLength: 20
                IM_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                IM_MASTER_LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                IM_TASK_DESCRIPTION:
                  type: object
                  properties:
                    SHORT:
                      type: string
                      maxLength: 12
                      description: Object Abbreviation
                    STEXT:
                      type: string
                      maxLength: 40
                      description: Object Name
                    SWOTP:
                      type: string
                      maxLength: 10
                      description: Object Type
                    SWMTD:
                      type: string
                      maxLength: 32
                      description: Method
                    CLSNAM:
                      type: string
                      maxLength: 32
                      description: 'Workflow: Type of Objects in Persistent Object References'
                    CLSMET:
                      type: string
                      maxLength: 32
                      description: 'Workflow: Method Name'
                    METHTYPE:
                      type: string
                      maxLength: 2
                      description: Object Category
                    BACKGROUND:
                      type: string
                      maxLength: 1
                      description: 'Background Processing  enumValues: ""=Not Selected,X=Selected'
                      enum:
                      - ''
                      - X
                    CONFIRMTSK:
                      type: string
                      maxLength: 1
                      description: 'Confirm End of Processing  enumValues: ""=Not Selected,X=Selected'
                      enum:
                      - ''
                      - X
                    SYNCHRON:
                      type: string
                      maxLength: 1
                      description: 'Synchronous Object Method  enumValues: ""=Not Selected,X=Selected'
                      enum:
                      - ''
                      - X
                    TTYPE:
                      type: string
                      maxLength: 1
                      description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    GENERATED:
                      type: string
                      maxLength: 1
                      description: 'Indicator: Entry Generated  enumValues: ""=Not Selected,X=Selected'
                      enum:
                      - ''
                      - X
                    ACTOR_FLAG:
                      type: string
                      maxLength: 1
                      description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    TSKRELSTAT:
                      type: string
                      maxLength: 1
                      description: Release Status of Task
                    PHONE_ABLE:
                      type: string
                      maxLength: 1
                      description: 'SAPphone: Flag ''Suitable for SAPphone'' (4 values''´)  enumValues: O=Suitable for SAPphone (outgoing),""=Not suitable for SAPphone,A=Suitable for SAPphone (incoming and outgoing),I=Suitable for SAPphone (incoming)'
                      enum:
                      - O
                      - ''
                      - A
                      - I
                    TCODE:
                      type: string
                      maxLength: 20
                      description: Transaction for starting/executing task on WWW
                    WEB_ABLE:
                      type: string
                      maxLength: 1
                      description: 'Flag: Task can be executed on Internet  enumValues: ""=Not Selected,X=Selected'
                      enum:
                      - ''
                      - X
                    FORM_ABLE:
                      type: string
                      maxLength: 1
                      description: 'Indicator: Task Executable with SAPforms Form  enumValues: ""=Not Selected,X=Selected'
                      enum:
                      - ''
                      - X
                IM_UNAME:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                CNT_ELEM_DEF:
                  type: array
                  items:
                    type: object
                    properties:
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element name in upper/lower case
                      EDITORDER:
                        type: integer
                        format: int64
                        description: Editing sequence
                      XMLTYPE:
                        type: string
                        maxLength: 32
                        description: XML Schema Data Type of the Container Element
                      REFTYPE:
                        type: string
                        maxLength: 1
                        description: 'Dictionary  enumValues: R=Organizational object type,D=Data Dictionary table field or table,""=No data type reference,M=Microsoft OLE data type,O=Object type'
                        enum:
                        - R
                        - D
                        - ''
                        - M
                        - O
                      REFOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      REFSTRUCT:
                        type: string
                        maxLength: 30
                        description: Reference table
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field
                      ELEMTYPE:
                        type: string
                        maxLength: 1
                        description: 'Element type  enumValues: I=Import,A=Export and import,E=Export'
                        enum:
                        - I
                        - A
                        - E
                      OBLIGIMP:
                        type: string
                        maxLength: 1
                        description: 'Required  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TABELEM:
                        type: string
                        maxLength: 1
                        description: 'Multiline element  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      MCODE:
                        type: string
                        maxLength: 30
                        description: Search Help (Formerly Matchcode)
                CNT_ELEM_DESCR:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element
                      DESCRIPT:
                        type: string
                        maxLength: 20
                        description: Name
                      DESCRIPT_L:
                        type: string
                        maxLength: 80
                        description: Description
                TASK_WI_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      WITEXT:
                        type: string
                        maxLength: 120
                        description: Work Item Text
              required:
              - IM_DEVCLASS
              - IM_KORRNUM
              - IM_TASK_DESCRIPTION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EX_HRS_OBJID:
                    type: integer
                    format: int64
                  EX_HRS_OTYPE:
                    type: string
                    maxLength: 2
                  E_MESSAGE:
                    type: string
                    maxLength: 120
                  E_RETCODE:
                    type: integer
                    format: int32
                  CNT_ELEM_DEF:
                    type: array
                    items:
                      type: object
                      properties:
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element name in upper/lower case
                        EDITORDER:
                          type: integer
                          format: int64
                          description: Editing sequence
                        XMLTYPE:
                          type: string
                          maxLength: 32
                          description: XML Schema Data Type of the Container Element
                        REFTYPE:
                          type: string
                          maxLength: 1
                          description: 'Dictionary  enumValues: R=Organizational object type,D=Data Dictionary table field or table,""=No data type reference,M=Microsoft OLE data type,O=Object type'
                          enum:
                          - R
                          - D
                          - ''
                          - M
                          - O
                        REFOBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        REFSTRUCT:
                          type: string
                          maxLength: 30
                          description: Reference table
                        REFFIELD:
                          type: string
                          maxLength: 30
                          description: Reference field
                        ELEMTYPE:
                          type: string
                          maxLength: 1
                          description: 'Element type  enumValues: I=Import,A=Export and import,E=Export'
                          enum:
                          - I
                          - A
                          - E
                        OBLIGIMP:
                          type: string
                          maxLength: 1
                          description: 'Required  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        TABELEM:
                          type: string
                          maxLength: 1
                          description: 'Multiline element  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        MCODE:
                          type: string
                          maxLength: 30
                          description: Search Help (Formerly Matchcode)
                  CNT_ELEM_DESCR:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element
                        DESCRIPT:
                          type: string
                          maxLength: 20
                          description: Name
                        DESCRIPT_L:
                          type: string
                          maxLength: 80
                          description: Description
                  TASK_WI_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        WITEXT:
                          type: string
                          maxLength: 120
                          description: Work Item Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
