openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWW_WI_AGENTS_CHANGE_S:
    post:
      tags:
      - SWWP
      operationId: /rfc/SWW_WI_AGENTS_CHANGE_S
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag - old agents should be deleted
                AUTHORIZATION_CHECKED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag for controlling authorization check
                DEADLINE_AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag - old agents should be deleted
                DESIRED_END_AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator Showing Whether Old Agents Are To Be Deleted
                DO_COMMIT:
                  type: string
                  default: X
                  maxLength: 1
                  description: Flag for controlling commit logic
                EXCLUDED_AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag - old agents should be deleted
                LATEST_START_AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator Showing Whether Old Agents Are To Be Deleted
                NOTIFICATION_AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag - old agents should be deleted
                WI_HEADER:
                  type: object
                  properties:
                    CLIENT:
                      type: string
                      maxLength: 3
                      description: Client
                    WI_ID:
                      type: integer
                      format: int64
                      description: Work item ID
                    WI_TYPE:
                      type: string
                      maxLength: 1
                      description: 'Work item type  enumValues: E=Work Item that Waits for an Event (Wait Step),C=Work Item that Represents a Container Linkage,R=Work Item that Represents a Remote Work Item (http),F=Workflow (Also Subworkflow),X=Work Item that Represents a Block,B=Work Item for Background Step,A=Work Item that Represents a Work Queue,Q=Work Item that Represents a Dialog Block,W=Dialog Work Item; Represents a Single-Step Task,N=Notification Item (No Longer Used),P=Work Item that Represents
                        a Remote Work Item (Proxy WI),D=Deadline Work Item; Notification upon Missed Deadline'
                      enum:
                      - E
                      - C
                      - R
                      - F
                      - X
                      - B
                      - A
                      - Q
                      - W
                      - N
                      - P
                      - D
                    WI_CREATOR:
                      type: string
                      maxLength: 90
                      description: Creator of a work item
                    WI_LANG:
                      type: string
                      maxLength: 1
                      description: Language for Texts of a Work Item
                    WI_TEXT:
                      type: string
                      maxLength: 120
                      description: Work item text
                    WI_RHTEXT:
                      type: string
                      maxLength: 40
                      description: Short Text from Task
                    WI_STAT:
                      type: string
                      maxLength: 12
                      description: 'Processing Status of a Work Item  enumValues: STARTED=In Process,CANCELLED=Logically Deleted,READY=Ready,EXCPHANDLR=Exception Being Handled,COMMITTED=Executed (Only If Expl. End Confirmation Is Expected),WAITING=Waiting (Also: Work Items in Resubmission),COMPLETED=Completed,ERROR=Error,EXCPCAUGHT=Exception Caught,CHECKED=In Preparation,SELECTED=Reserved'
                      enum:
                      - STARTED
                      - CANCELLED
                      - READY
                      - EXCPHANDLR
                      - COMMITTED
                      - WAITING
                      - COMPLETED
                      - ERROR
                      - EXCPCAUGHT
                      - CHECKED
                      - SELECTED
                    WI_CD:
                      type: string
                      format: date
                      description: Creation Date of Work Item
                    WI_CT:
                      type: string
                      maxLength: 6
                      description: Creation Time of Work Item
                    WI_AED:
                      type: string
                      format: date
                      description: End Date of Work Item
                    WI_AAGENT:
                      type: string
                      maxLength: 12
                      description: Actual Agent of Work Item
                    WI_AADDR:
                      type: string
                      maxLength: 28
                      description: Key for BOR Object of Type ADDRESS (SWWADDRKEY)
                    WI_CRUSER:
                      type: string
                      maxLength: 12
                      description: User Who Created the Work Item
                    WI_CRADDR:
                      type: string
                      maxLength: 28
                      description: Key for BOR Object of Type ADDRESS (SWWADDRKEY)
                    WI_CHCKWI:
                      type: integer
                      format: int64
                      description: Superordinate Work Item
                    WI_CBFB:
                      type: string
                      maxLength: 30
                      description: Callback Function Module for Work Item Feedback
                    WI_RH_TASK:
                      type: string
                      maxLength: 14
                      description: Task ID
                    WI_PRIO:
                      type: integer
                      format: int64
                      description: 'Priority of a Work Item  enumValues: 1=1 Highest - Express,6=6 Low,3=3 Higher,9=9 Lowest,8=8 Very low,5=5 Medium,7=7 Lower,2=2 Very high,4=4 High'
                      enum:
                      - '1'
                      - '6'
                      - '3'
                      - '9'
                      - '8'
                      - '5'
                      - '7'
                      - '2'
                      - '4'
                    WI_CONFIRM:
                      type: string
                      maxLength: 1
                      description: 'Indicator showing that end of processing must be confirmed  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    WI_COMP_EV:
                      type: string
                      maxLength: 1
                      description: 'Indicator Denoting That Completion By Event Is Possible  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    WI_FORW_BY:
                      type: string
                      maxLength: 12
                      description: (Last) forwarder of work item
                    WI_DISABLE:
                      type: string
                      maxLength: 1
                      description: 'Flag: Work item is currently locked  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    WI_REJECT:
                      type: string
                      maxLength: 1
                      description: 'Indicator Denoting that Work Item Can Be Rejected by Agent  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TCLASS:
                      type: string
                      maxLength: 12
                      description: Classification of Tasks
                    NOTE_EXIST:
                      type: string
                      maxLength: 1
                      description: 'Indicator Denoting that At Least One Note Exists for the WI  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    NOTIFY:
                      type: string
                      maxLength: 1
                      description: 'Flag: Whether a Notification of Completion Is To Be Sent  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    RETRY_CNT:
                      type: integer
                      format: int64
                      description: Retries for Work Items with Temporary Errors
                    MAX_RETRY:
                      type: integer
                      format: int64
                      description: Retries for Work Items with Temporary Errors
                    RC_MODELED:
                      type: string
                      maxLength: 1
                      description: 'Indicator whether return code modeled in step definition  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    CB_DONE:
                      type: string
                      maxLength: 1
                      description: 'Status Transition for Executed Work Item Completed  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    HANDLE:
                      type: integer
                      format: int64
                      description: ID of Workflow Trace
                    SYNCCHAIN:
                      type: string
                      maxLength: 1
                      description: 'Flag: WI Is Part of a Synchronous Processing Chain  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    NO_DEADL:
                      type: string
                      maxLength: 1
                      description: 'Flag Denoting Whether WI Contains Deadline Data  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    WI_DH_STAT:
                      type: integer
                      format: int64
                      description: 'Deadline Status of a Work Item  enumValues: 8996=Latest Start,8990=Requested Start,8998=Latest End,0000=Deadline Not Yet Reached,8997=Requested End'
                      enum:
                      - '8996'
                      - '8990'
                      - '8998'
                      - '0000'
                      - '8997'
                    WI_RELEASE:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    WLC_DISPL:
                      type: string
                      maxLength: 1
                      description: 'Display of WI in WLC modeled in step definition  enumValues: F=Funktion module modeled,X=Subscreen modeled,Z=Everything modeled (tab page, function module),""=Nothing modeled'
                      enum:
                      - F
                      - X
                      - Z
                      - ''
                    WI_RESTLOG:
                      type: string
                      maxLength: 1
                      description: 'Minimize Number of Entries in Workflow Log  enumValues: ""=Only log success messages and errors,1=No restrictions on logging,2=Only log errors'
                      enum:
                      - ''
                      - '1'
                      - '2'
                    REMOTE_ID:
                      type: integer
                      format: int64
                      description: Work item ID
                    REMOTE_SYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                    STATUS_EVT:
                      type: string
                      maxLength: 1
                      description: 'Flag: Whether Event STATUS_CHANGED Is To Be Triggered (FIs)  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TIMEOUT:
                      type: integer
                      format: int32
                      description: Time Interval Between Creation of Work Item and Timeout
                    WF_TYPE:
                      type: integer
                      format: int64
                      description: 'Type of Workflow Definition: Standard, Checklist, Ad Hoc, ..  enumValues: 0008=Has a Review Workflow,0004=Supports Forms,0512=Guided Procedure Workflow,0032=Insertable Ad Hoc Workflow,0000=Standard Workflow,0001=Ad Hoc Agent Assignment Is Possible,0002=Portrays Checklist,0128=Generated Workflow (Not Modifiable),0256=Message-Based Workflow,0016=Review Workflow,0064=Has an Insertable Ad Hoc Workflow'
                      enum:
                      - '0008'
                      - '0004'
                      - '0512'
                      - '0032'
                      - '0000'
                      - '0001'
                      - '0002'
                      - '0128'
                      - '0256'
                      - '0016'
                      - '0064'
                    WLC_FLAGS:
                      type: string
                      format: byte
                      description: 'WF: Internal, conversion of 4-byte integer <-> 4-byte hex.'
                    XMLPROT:
                      type: integer
                      format: int64
                      description: Transfer Format Used In Web Activity
                    WAIT4CB:
                      type: string
                      maxLength: 1
                      description: 'Wait For Feedback By XML  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TOP_WI_ID:
                      type: integer
                      format: int64
                      description: 'Workflow: Unique ID of Top-Level Instance (6.1/get)'
                    DEF_GUID:
                      type: string
                      maxLength: 40
                      description: 'Workflow: Unique ID of Step Definition (6.1/get)'
                    EXEC_TIME:
                      type: integer
                      format: int32
                      description: 'Workflow: De Facto Execution Time in Sec (6.1/get)'
                    NOTE_COUNT:
                      type: integer
                      format: int32
                      description: Number of Attachments
                    PRS_PROFIL:
                      type: integer
                      format: int64
                      description: 'Type of Persistence Profile  enumValues: 0001=Structure Persistence,0002=XML Persistence,0000=Compatibility Mode'
                      enum:
                      - '0001'
                      - '0002'
                      - '0000'
                    CREA_TMP:
                      type: integer
                      format: int64
                      description: 'Workflow: Creation Time Stamp'
                    CHECK_STAT:
                      type: integer
                      format: int64
                      description: 'Workflow: Status of Post Condition/Wait Condition  enumValues: 02=Wait Condition to Be Checked (Delivery Using Batch),03=Post/Wait Condition to Be Checked (Delivery Using Batch),12=Wait Condition to Be Checked (Delivery Using Event),13=Post/Wait Condition to Be Checked (Delivery Using Event),01=Post Condition to Be Checked (Delivery Using Batch),11=Post Condition to Be Checked (Delivery Using Event),00=No Post/Wait Condition Active'
                      enum:
                      - '02'
                      - '03'
                      - '12'
                      - '13'
                      - '01'
                      - '11'
                      - '00'
                    BLOCKTYPE:
                      type: integer
                      format: int64
                      description: 'WFM: Block Type  enumValues: 0001=Implicit Block,0002=Local Workflow,0000=Explicit Block'
                      enum:
                      - '0001'
                      - '0002'
                      - '0000'
                    PARENT_WI:
                      type: integer
                      format: int64
                      description: Parent of a Work Item
                    RNDNUMBER:
                      type: integer
                      format: int64
                      description: 'Workflow: Random Number'
                    WFD_ID:
                      type: string
                      maxLength: 10
                      description: Number of workflow definition
                    WFD_VERSION:
                      type: string
                      maxLength: 4
                      description: Version
                    WFD_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
                    PROCCAT:
                      type: string
                      maxLength: 10
                      description: 'Process Category  enumValues: ""=Business Workflow,CCBPM=Cross-Component BPM,GP=Guided Procedure'
                      enum:
                      - ''
                      - CCBPM
                      - GP
                AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
                DEADLINE_AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
                DESIRED_END_AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
                EXCLUDED_AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
                LATEST_START_AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
                NOTIFICATION_AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 12
                        description: Agent ID in Organizational Management
              required:
              - WI_HEADER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AGENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
                  DEADLINE_AGENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
                  DESIRED_END_AGENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
                  EXCLUDED_AGENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
                  LATEST_START_AGENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
                  NOTIFICATION_AGENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: string
                          maxLength: 12
                          description: Agent ID in Organizational Management
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
