openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CPE_UWLTASK_CREATE:
    post:
      tags:
      - UWLTASK
      summary: ABAP enabling of Ad hoc Workflow
      operationId: /rfc/CPE_UWLTASK_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LOGGING:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-Character Flag
                TASKDATA:
                  type: object
                  properties:
                    PARENTID:
                      type: string
                      maxLength: 4
                      description: Not More Closely Defined Area, Possibly Used for Patchlevels
                    CREATOR:
                      type: string
                      maxLength: 100
                      description: Character 100
                    BIZOBJTYPE:
                      type: string
                      maxLength: 100
                      description: Character 100
                    BIZOBJKEY:
                      type: string
                      maxLength: 100
                      description: Character 100
                    ASSIGNEELIST:
                      type: string
                      maxLength: 100
                      description: Character 100
                    SUBJECT:
                      type: string
                      maxLength: 100
                      description: Character 100
                    DESCRIPTION:
                      type: string
                      maxLength: 255
                      description: Char255
                    PRIORITY:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    DUE:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    CPEDATE:
                      type: string
                      maxLength: 8
                      description: Character field, 8 characters long
                    CPETIME:
                      type: string
                      maxLength: 4
                      description: Not More Closely Defined Area, Possibly Used for Patchlevels
                    TRACKERLIST:
                      type: string
                      maxLength: 100
                      description: Character 100
                    FINALAPPROVAL:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    ALLOWDECLINE:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    SEPARATETASK:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    NOTIFICATION:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    URL:
                      type: string
                      maxLength: 255
                      description: Char255
                    THRESHOLD:
                      type: string
                      maxLength: 4
                      description: Not More Closely Defined Area, Possibly Used for Patchlevels
                ATTACHMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      CPEKEY:
                        type: string
                        maxLength: 50
                        description: Comment
                      CPEVALUE:
                        type: string
                        maxLength: 255
                        description: Char255
                CONTEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      CPEKEY:
                        type: string
                        maxLength: 50
                        description: Comment
                      CPEVALUE:
                        type: string
                        maxLength: 255
                        description: Char255
                RFCDESTINATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      RFCDEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                URLPARAMETERS:
                  type: array
                  items:
                    type: object
                    properties:
                      CPEKEY:
                        type: string
                        maxLength: 50
                        description: Comment
                      CPEVALUE:
                        type: string
                        maxLength: 255
                        description: Char255
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CPEINSTANCEID:
                    type: string
                    maxLength: 10
                    description: Character Field Length = 10
                  ATTACHMENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        CPEKEY:
                          type: string
                          maxLength: 50
                          description: Comment
                        CPEVALUE:
                          type: string
                          maxLength: 255
                          description: Char255
                  CONTEXT:
                    type: array
                    items:
                      type: object
                      properties:
                        CPEKEY:
                          type: string
                          maxLength: 50
                          description: Comment
                        CPEVALUE:
                          type: string
                          maxLength: 255
                          description: Char255
                  RFCDESTINATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        RFCDEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                  URLPARAMETERS:
                    type: array
                    items:
                      type: object
                      properties:
                        CPEKEY:
                          type: string
                          maxLength: 50
                          description: Comment
                        CPEVALUE:
                          type: string
                          maxLength: 255
                          description: Char255
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
