openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWW_WI_AGENTS_CHANGE:
    post:
      tags:
      - SWWA
      summary: Change Agents of Work Item
      operationId: /rfc/SWW_WI_AGENTS_CHANGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator Showing Whether Old Agents Are To Be Deleted
                AUTHORIZATION_CHECKED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator for Control of Authorization Check
                DEADLINE_AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator Showing Whether Old Agents Are To 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: Indicator for Control of Commit Logic
                EXCLUDED_AGENTS_APPEND:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Indicator Showing Whether Old Agents Are To 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: Indicator Showing Whether Old Agents Are To Be Deleted
                WI_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
                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_ID
      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.
