openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPCPC_I_BUILD_DEVICE:
    post:
      tags:
      - SPCPCCLI
      summary: Creates a CPC managed printer
      operationId: /rfc/SPCPC_I_BUILD_DEVICE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PARAD:
                  type: object
                  properties:
                    NAME:
                      type: string
                      maxLength: 30
                      description: 'Spool: Long device names'
                    PADEST:
                      type: string
                      maxLength: 4
                      description: 'Spool: short name for output device'
                    PATYPE:
                      type: string
                      maxLength: 8
                      description: 'Spool: Device type name'
                    PAMODEL:
                      type: string
                      maxLength: 20
                      description: 'Spool: Model of an output device'
                    PACLASS:
                      type: string
                      maxLength: 1
                      description: 'Spool: Device class according to server assignment  enumValues: P=Production printing (for example, documents, cover letters),D=Desktop printing (for example, SAPoffice documents),i=Production printing and test printing,k=Production printing, mass printing, and test printing,V=Mass printing (such as for cost center lists),T=Test server or test print,j=Mass printing and test printing,m=Production printing, desktop printing, and test printing,f=Mass printing and desktop
                        printing,n=Mass printing, desktop printing, and test printing,""=Unclassified,g=Production printing, mass printing, and desktop printing,l=Desktop printing and test printing,e=Production printing and desktop printing,c=Production printing and mass printing,o=Production, mass, desktop, and test printing'
                      enum:
                      - P
                      - D
                      - i
                      - k
                      - V
                      - T
                      - j
                      - m
                      - f
                      - n
                      - ''
                      - g
                      - l
                      - e
                      - c
                      - o
                    PAARCHIVER:
                      type: string
                      maxLength: 1
                      description: 'Device class (printer, fax, and so on)  enumValues: A=Archiving program,T=Telex,J=Job Ticket,L=Logical output device,""=Standard printer,F=Fax,P=Device Pool'
                      enum:
                      - A
                      - T
                      - J
                      - L
                      - ''
                      - F
                      - P
                    PALANGU:
                      type: string
                      maxLength: 1
                      description: Cover page language
                    PADISABLED:
                      type: string
                      maxLength: 1
                      description: 'Output device not released  enumValues: ""=Device is ready,X=Device is locked'
                      enum:
                      - ''
                      - X
                    PANOQUERY:
                      type: string
                      maxLength: 1
                      description: 'Spool: Select for no query about print requests  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PADUPCOPY:
                      type: string
                      maxLength: 1
                      description: 'Create a print request for each copy  enumValues: ""=Pass Copy Counter to Host Spool System,N=Only Pass One Copy to Host Spool System,X=Pass Copies as Separate Output Request (in SAP System)'
                      enum:
                      - ''
                      - N
                      - X
                    PADUPLEX:
                      type: string
                      maxLength: 1
                      description: 'Spool: Flag whether duplex print  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PASTORELOC:
                      type: string
                      maxLength: 1
                      description: 'Spool: Storage location for spool request  enumValues: L=File system (local if possible),D=Database,G=File system (global),""=Corresponding profile parameter'
                      enum:
                      - L
                      - D
                      - G
                      - ''
                    PADFLTUTTL:
                      type: string
                      maxLength: 1
                      description: 'Print default host spool cover page  enumValues: X=Always print host spooler cover page,""=Do not print host spooler cover page,D=Print host spooler cover page as set at printer'
                      enum:
                      - X
                      - ''
                      - D
                    PADFLTSTTL:
                      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
                      - ''
                    PASYNC:
                      type: string
                      maxLength: 1
                      description: 'Spool: Synchronization of requests of a device  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PAMONI:
                      type: string
                      maxLength: 1
                      description: 'Spool: Monitor using monitoring infrastructure  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PASTANDORT:
                      type: string
                      maxLength: 64
                      description: 'Spool: Location and naming of an output device'
                    PAMSG:
                      type: string
                      maxLength: 64
                      description: 'Spool: Status message (or copy of location)'
                    PAMSSERVER:
                      type: string
                      maxLength: 20
                      description: Server Name
                    PAMETHOD:
                      type: string
                      maxLength: 1
                      description: 'Spool: Host spool system access method'
                    PAPROSNAME:
                      type: string
                      maxLength: 50
                      description: 'Spool: Long name of printers for host spooler'
                    PALOMS:
                      type: string
                      maxLength: 6
                      description: Logical output management system
                    PALPRCMD:
                      type: string
                      maxLength: 1
                      description: Host spool print command to use
                    PALPDHOST:
                      type: string
                      maxLength: 32
                      description: Name of destination host
                    PALPDPORT:
                      type: integer
                      format: int32
                      description: Port number for TCP connection to lpd/SAPLPD
                    PACONNTIME:
                      type: integer
                      format: int32
                      description: Connection setup time
                    PAREADTIME:
                      type: integer
                      format: int32
                      description: Read timeout
                    PATRAYS:
                      type: integer
                      format: int32
                      description: Number of trays at output device
                    PAXSHIFT:
                      type: integer
                      format: int32
                      description: Horizontal move
                    PAYSHIFT:
                      type: integer
                      format: int32
                      description: Vertical shift
                    PAXSHUNIT:
                      type: string
                      maxLength: 2
                      description: 'Unit of measurement for horizontal shift  enumValues: CM=Centimeter,CH=Character,IN=Inches,MM=Millimeter,PT=Point'
                      enum:
                      - CM
                      - CH
                      - IN
                      - MM
                      - PT
                    PAYSHUNIT:
                      type: string
                      maxLength: 2
                      description: 'Unit of measurement for vertical shift  enumValues: CM=Centimeters,IN=Inches,PT=Point,MM=Millimeters,LN=Lines'
                      enum:
                      - CM
                      - IN
                      - PT
                      - MM
                      - LN
                    PACRYPTMOD:
                      type: string
                      maxLength: 1
                      description: 'Data Security Mode  enumValues: O=Optional Data Transfer Security,""=Unsecure Data Transfer,R=Only Use Secure Transfer'
                      enum:
                      - O
                      - ''
                      - R
                    PACRYPTMET:
                      type: string
                      maxLength: 1
                      description: 'Level of Security  enumValues: S=Integrity Protection,A=Only Authentication,X=Privacy Protection,""=Unsecure Data Transfer,H=Encode Data'
                      enum:
                      - S
                      - A
                      - X
                      - ''
                      - H
                    PANOVSERVR:
                      type: string
                      maxLength: 1
                      description: 'Output device is connected via Novell server  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    PAPOOLART:
                      type: string
                      maxLength: 1
                      description: 'Type of pool  enumValues: A=Copies to all printers of the pool,P=Automatic selection of a printer from the pool'
                      enum:
                      - A
                      - P
                    PATRACE2:
                      type: string
                      maxLength: 1
                      description: 'Spool: activate level 2 developer trace  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PATRACEF:
                      type: string
                      maxLength: 1
                      description: 'Spool: activate function trace  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PAPROTDATA:
                      type: string
                      maxLength: 1
                      description: 'Spool: Entry to log generated data  enumValues: L=Logging the first 100 KB,""=No logging,S=Logging the first 10 KB'
                      enum:
                      - L
                      - ''
                      - S
                    PAPROTCMD:
                      type: string
                      maxLength: 1
                      description: 'Spool: Flag whether host spool command should be logged  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PAPROTRES:
                      type: string
                      maxLength: 1
                      description: 'Spool: Flag whether resource control is logged  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    PAKEEPFILE:
                      type: string
                      maxLength: 1
                      description: 'Spool: Flag whether output file should be retained  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    CHGNAME1:
                      type: string
                      maxLength: 12
                      description: 'Spool: changed by'
                    CHGTSTMP1:
                      type: string
                      maxLength: 14
                      description: 'Spool: Time stamp for modification'
                    CHGSAPREL1:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    CHGSAPSYS1:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    CHGNAME2:
                      type: string
                      maxLength: 12
                      description: 'Spool: changed by'
                    CHGTSTMP2:
                      type: string
                      maxLength: 14
                      description: 'Spool: Time stamp for modification'
                    CHGSAPREL2:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    CHGSAPSYS2:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    CHGNAME3:
                      type: string
                      maxLength: 12
                      description: 'Spool: changed by'
                    CHGTSTMP3:
                      type: string
                      maxLength: 14
                      description: 'Spool: Time stamp for modification'
                    CHGSAPREL3:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    CHGSAPSYS3:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    PADEVGRP:
                      type: string
                      maxLength: 30
                      description: 'Spool: authorization group for devices'
                    COLORPRT:
                      type: string
                      maxLength: 1
                      description: 'Flag whether or not printer supports color printing  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    PRINTMODE:
                      type: string
                      maxLength: 1
                      description: 'Print mode controls printing on one or both sides  enumValues: ""=DEFAULT: Printer default setting,D=DUPLEX:  Print on both sides,S=SIMPLEX: Print on one side,T=TUMBLE DUPLEX: Print both sides reversed'
                      enum:
                      - ''
                      - D
                      - S
                      - T
                    INPUTTRAY:
                      type: string
                      maxLength: 3
                      description: 'Printer paper tray  enumValues: 6=Paper tray 6,7=Paper tray 7,8=Paper tray 8,9=Paper tray 9,""=Default tray,ENV=Paper tray for envelopes,10=Paper tray 10,MEN=Manual feed for envelopes,MAN=Manual feed,1=Paper tray 1,2=Paper tray 2,3=Paper tray 3,4=Paper tray 4,5=Paper tray 5'
                      enum:
                      - '6'
                      - '7'
                      - '8'
                      - '9'
                      - ''
                      - ENV
                      - '10'
                      - MEN
                      - MAN
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                      - '5'
                    PANOCHOICE:
                      type: string
                      maxLength: 1
                      description: 'Spool: Deactivate Selection  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                PARAA:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 30
                        description: 'Spool: Long device names'
                      PARAM:
                        type: string
                        maxLength: 16
                        description: Parameter name for spool settings
                      LINE:
                        type: integer
                        format: int64
                        description: Eight-digit numeric value
                      VALUE:
                        type: string
                        maxLength: 200
                        description: Spool parameter value
              required:
              - PARAD
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: object
                    properties:
                      CODE:
                        type: integer
                        format: int32
                        description: Natural number
                      DESCRIPTION:
                        type: string
                        maxLength: 240
                        description: Text field of length 240
                  PARAA:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 30
                          description: 'Spool: Long device names'
                        PARAM:
                          type: string
                          maxLength: 16
                          description: Parameter name for spool settings
                        LINE:
                          type: integer
                          format: int64
                          description: Eight-digit numeric value
                        VALUE:
                          type: string
                          maxLength: 200
                          description: Spool parameter value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
