openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_WF_DEFINITION_ACTIVATE:
    post:
      tags:
      - SWDE
      operationId: /rfc/SWD_WF_DEFINITION_ACTIVATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                ACT_TASK:
                  type: string
                  maxLength: 14
                ACT_WFDKEY:
                  type: object
                  properties:
                    WFD_ID:
                      type: string
                      maxLength: 10
                      description: Number of workflow definition
                    VERSION:
                      type: string
                      maxLength: 4
                      description: Version
                    EXETYP:
                      type: string
                      maxLength: 1
                      description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                      enum:
                      - E
                      - R
                      - S
                      - D
                      - C
                      - A
                DO_COMMIT:
                  type: string
                  default: X
                  maxLength: 1
                PROGRESS_SHOW:
                  type: string
                  default: X
                  maxLength: 1
                ACT_ERROR:
                  type: array
                  items:
                    type: object
                    properties:
                      LEVEL:
                        type: integer
                        format: int64
                        description: 'Log Level  enumValues: 3=Overview level for logging all work steps,1=Statistics level for summary of program results,2=Error level for logging incorrect results,4=Detailed level, additional information for the Hotline'
                        enum:
                        - '3'
                        - '1'
                        - '2'
                        - '4'
                      SEVERITY:
                        type: string
                        maxLength: 1
                        description: 'Error severity('' '',W(arning),E(rror),A(bnormal termination))  enumValues: W=Warning,""=Function Not Executed Yet,A=Internal Error, Operation Canceled,S=Status Message,E=Error: Could not Execute Function,N=Function Executed Successfully,I=Information,F=Fatal error'
                        enum:
                        - W
                        - ''
                        - A
                        - S
                        - E
                        - N
                        - I
                        - F
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      AG:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MSGNR:
                        type: string
                        maxLength: 3
                        description: Message number
                      NEWOBJ:
                        type: string
                        maxLength: 1
                        description: 'New Section  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      VAR1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VAR2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VAR3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VAR4:
                        type: string
                        maxLength: 50
                        description: Message Variable
              required:
              - ACT_TASK
              - ACT_WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR_COUNT:
                    type: integer
                    format: int32
                  WORST_MESSAGETYPE:
                    type: string
                    maxLength: 1
                  ACT_ERROR:
                    type: array
                    items:
                      type: object
                      properties:
                        LEVEL:
                          type: integer
                          format: int64
                          description: 'Log Level  enumValues: 3=Overview level for logging all work steps,1=Statistics level for summary of program results,2=Error level for logging incorrect results,4=Detailed level, additional information for the Hotline'
                          enum:
                          - '3'
                          - '1'
                          - '2'
                          - '4'
                        SEVERITY:
                          type: string
                          maxLength: 1
                          description: 'Error severity('' '',W(arning),E(rror),A(bnormal termination))  enumValues: W=Warning,""=Function Not Executed Yet,A=Internal Error, Operation Canceled,S=Status Message,E=Error: Could not Execute Function,N=Function Executed Successfully,I=Information,F=Fatal error'
                          enum:
                          - W
                          - ''
                          - A
                          - S
                          - E
                          - N
                          - I
                          - F
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        AG:
                          type: string
                          maxLength: 20
                          description: Application Area
                        MSGNR:
                          type: string
                          maxLength: 3
                          description: Message number
                        NEWOBJ:
                          type: string
                          maxLength: 1
                          description: 'New Section  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        VAR1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VAR2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VAR3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VAR4:
                          type: string
                          maxLength: 50
                          description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
