openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RH_TASK_AGENTS_MC_SEARCH:
    post:
      tags:
      - RHW0
      summary: 'Search function: task agent'
      operationId: /rfc/RH_TASK_AGENTS_MC_SEARCH
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_BEGDA:
                  type: string
                  format: date
                  default: SY-DATUM
                ACT_ENDDA:
                  type: string
                  format: date
                  default: SY-DATUM
                ACT_PLVAR:
                  type: string
                  maxLength: 2
                ACT_WI_ID:
                  type: integer
                  format: int64
                ORG_OTYPE:
                  type: string
                  maxLength: 2
                ORG_SEARCH_STRING:
                  type: string
                  default: '*'
                  maxLength: 12
                TASK_OBJID:
                  type: integer
                  format: int64
                TASK_OTYPE:
                  type: string
                  maxLength: 2
                UPDATE_INDEX:
                  type: string
                  maxLength: 1
                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
              required:
              - TASK_OBJID
              - TASK_OTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SEL_OBJID:
                    type: string
                    maxLength: 45
                  SEL_OTYPE:
                    type: string
                    maxLength: 2
                  SEL_PLVAR:
                    type: string
                    maxLength: 2
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
