openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RH_TASK_AGENTS_SHOW:
    post:
      tags:
      - RHWH
      operationId: /rfc/RH_TASK_AGENTS_SHOW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_PLVAR:
                  type: string
                  maxLength: 2
                  description: Current plan version; default ' ' -> active pl.ver
                ACT_TITLE:
                  type: string
                  maxLength: 50
                  description: Title
                ACT_WI_ID:
                  type: integer
                  format: int64
                  description: Work item ID
                EXTENDED_LIST:
                  type: string
                  maxLength: 1
                  description: 'Type of output: '' '' users only; ''X'' all'
                MULTIPLE_CALL:
                  type: string
                  maxLength: 1
                SEARCH_DATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Search date
                SELECT_AGENT:
                  type: string
                  maxLength: 1
                  description: Selection (' ' no, 'X' yes)
                SHOW_ALL_EX_AGENTS:
                  type: string
                  maxLength: 1
                SHOW_ALL_POSSIBLE_AGENTS:
                  type: string
                  maxLength: 1
                SHOW_EXCLUDED_AGENTS:
                  type: string
                  maxLength: 1
                SHOW_GIVEN_AGENTS:
                  type: string
                  maxLength: 1
                  description: Agents
                TASK_OBJID:
                  type: integer
                  format: int64
                  description: Task ID
                TASK_OTYPE:
                  type: string
                  maxLength: 2
                  description: Task type
                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
                GIVEN_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:
              - TASK_OBJID
              - TASK_OTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXIT_FCODE:
                    type: string
                    maxLength: 20
                    description: Object ID
                  SELECTED_OBJID:
                    type: string
                    maxLength: 45
                    description: Object ID
                  SELECTED_OTYPE:
                    type: string
                    maxLength: 2
                    description: Object type
                  SELECTED_PLVAR:
                    type: string
                    maxLength: 2
                    description: 'Agent chosen: plan version'
                  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
                  GIVEN_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.
