openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPO_SET_TOC_SPOOLJOB:
    post:
      tags:
      - SPOX
      operationId: /rfc/RSPO_SET_TOC_SPOOLJOB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADD:
                  type: string
                  maxLength: 1
                FORCE:
                  type: string
                  maxLength: 1
                RQIDENT:
                  type: integer
                  format: int32
                  description: Spool Request Number
                CONTENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      TITLE:
                        type: string
                        maxLength: 180
                        description: 'Spool: Table of contents text'
                      LEVEL:
                        type: integer
                        format: int64
                        description: 'Spool: Table of contents level'
                      PAGE:
                        type: integer
                        format: int64
                        description: Page Counter
              required:
              - RQIDENT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RQ:
                    type: object
                    properties:
                      RQIDENT:
                        type: integer
                        format: int32
                        description: Spool request number
                      RQCLIENT:
                        type: string
                        maxLength: 3
                        description: Client for which object was generated
                      RQ0NAME:
                        type: string
                        maxLength: 6
                        description: 'Spool request: Name'
                      RQ1NAME:
                        type: string
                        maxLength: 4
                        description: 'Spool request: Suffix 1'
                      RQ2NAME:
                        type: string
                        maxLength: 12
                        description: 'Spool request: Suffix 2'
                      RQOWNER:
                        type: string
                        maxLength: 12
                        description: User name
                      RQCMODE:
                        type: string
                        maxLength: 1
                        description: External mode of an SAP dialog
                      RQFINAL:
                        type: string
                        maxLength: 1
                        description: Spool request completed
                      RQCRETIME:
                        type: string
                        maxLength: 16
                        description: Time a spool request was created
                      RQDELTIME:
                        type: string
                        maxLength: 16
                        description: Spool Request Deleted At
                      RQREARULE:
                        type: integer
                        format: int32
                        description: 'TemSe: Read protection rule number'
                      RQDELRULE:
                        type: integer
                        format: int32
                        description: 'TemSe: Number of delete protection rule'
                      RQAPPRULE:
                        type: integer
                        format: int32
                        description: 'TemSe: Number of add protection rule'
                      RQMODRULE:
                        type: integer
                        format: int32
                        description: 'TemSe: Number of change protection rule'
                      RQ1DISPO:
                        type: string
                        maxLength: 1
                        description: Print immediately or later
                      RQ2DISPO:
                        type: string
                        maxLength: 1
                        description: Delete spool request automatically
                      RQ3DISPO:
                        type: string
                        maxLength: 1
                        description: 'Spool option 3: Automatic re-routing'
                      RQDEST:
                        type: string
                        maxLength: 4
                        description: 'Spool: Output device'
                      RQCOPIES:
                        type: integer
                        format: int32
                        description: Number of copies
                      RQPRIO:
                        type: integer
                        format: int32
                        description: 'Spool: Spool or print request priority  enumValues: 4=4 = medium,7=7 = low,1=1 = very high,9=9 = very low,8=8 = low,6=6 = medium,3=3 = high,5=5 = medium,2=2 = high'
                        enum:
                        - '4'
                        - '7'
                        - '1'
                        - '9'
                        - '8'
                        - '6'
                        - '3'
                        - '5'
                        - '2'
                      RQPAPER:
                        type: string
                        maxLength: 16
                        description: 'Spool: Format type'
                      RQPJREQ:
                        type: integer
                        format: int32
                        description: 'Spool: No. output requests for spool request total'
                      RQPJDONE:
                        type: integer
                        format: int32
                        description: Number of output requests processed
                      RQPJSERR:
                        type: integer
                        format: int32
                        description: 'Spool: Number of output requests with problems'
                      RQPJHERR:
                        type: integer
                        format: int32
                        description: 'Spool: Number of output requests with errors (no printout)'
                      RQWRITER:
                        type: integer
                        format: int32
                        description: 'TemSe: General counter'
                      RQERROR:
                        type: string
                        maxLength: 1
                        description: 'Spool: Error status'
                      RQO1NAME:
                        type: string
                        maxLength: 20
                        description: TemSe object name
                      RQO1PART:
                        type: integer
                        format: int32
                        description: 'TemSe: Number of the part of a TemSe object'
                      RQO1CLIE:
                        type: string
                        maxLength: 3
                        description: Client for which object was generated
                      RQTITLE:
                        type: string
                        maxLength: 68
                        description: Title of a spool request
                      RQDELETED:
                        type: string
                        maxLength: 1
                        description: Delete flag for spool requests
                      RQSAPTITLE:
                        type: string
                        maxLength: 1
                        description: 'Print SAP cover page  enumValues: D=Print SAP cover page as set at printer,X=Always print SAP cover page,""=Do not print SAP cover page'
                        enum:
                        - D
                        - X
                        - ''
                      RQUNXTITLE:
                        type: string
                        maxLength: 1
                        description: 'Print operating system cover page  enumValues: ""=Do not print operating system cover page,D=Print operating system cover page as set at printer,X=Always print operating system cover page'
                        enum:
                        - ''
                        - D
                        - X
                      RQRECEIVER:
                        type: string
                        maxLength: 12
                        description: 'Spool: Recipient of spool request'
                      RQDIVISION:
                        type: string
                        maxLength: 12
                        description: Department
                      RQARCHTYPE:
                        type: string
                        maxLength: 1
                        description: 'Archive type (internal, not on screen)  enumValues: 1=Print,2=Archive,3=Print and Archive'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                      RQARCHDEST:
                        type: string
                        maxLength: 4
                        description: Archiving device
                      RQARCHSTAT:
                        type: string
                        maxLength: 1
                        description: 'Spool: Archive status of spool request'
                      RQAUTH:
                        type: string
                        maxLength: 12
                        description: Value for authorization check
                      RQISPROTOK:
                        type: string
                        maxLength: 1
                        description: 'Flag: Whether this request is a log for another request'
                      RQTELELAN:
                        type: string
                        maxLength: 3
                        description: Country Key
                      RQTELENUM:
                        type: string
                        maxLength: 30
                        description: Telecommunications partner
                      RQTELENUME:
                        type: string
                        maxLength: 30
                        description: Telecommunications partner
                      RQMODTIME:
                        type: string
                        maxLength: 16
                        description: Last time a spool request was changed
                      RQDOCTYPE:
                        type: string
                        maxLength: 6
                        description: 'Spool: document type'
                      RQPOSNAME:
                        type: string
                        maxLength: 50
                        description: 'Spool: Long name of printers for host spooler'
                  CONTENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        TITLE:
                          type: string
                          maxLength: 180
                          description: 'Spool: Table of contents text'
                        LEVEL:
                          type: integer
                          format: int64
                          description: 'Spool: Table of contents level'
                        PAGE:
                          type: integer
                          format: int64
                          description: Page Counter
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
