openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ADD_JOB_MSQ:
    post:
      tags:
      - SFMSS_JOBS
      summary: MS SQL server function to add a sql server job
      operationId: /rfc/ADD_JOB_MSQ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMMAND:
                  type: string
                  maxLength: 520
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                DBNAME:
                  type: string
                  maxLength: 128
                  description: Database name
                DESCRIPTION:
                  type: string
                  maxLength: 255
                ENABLED:
                  type: integer
                  format: int32
                FREQINT:
                  type: integer
                  format: int32
                  default: 1
                FREQTYPE:
                  type: integer
                  format: int32
                  default: 1
                FREQUNITINT:
                  type: integer
                  format: int32
                FREQUNITTYPE:
                  type: integer
                  format: int32
                OWNER:
                  type: string
                  maxLength: 30
                  description: MS SQL Server user name
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 128
                  description: Schema name
                STARTDATE:
                  type: integer
                  format: int32
                STARTTIME:
                  type: integer
                  format: int32
                STEPID:
                  type: integer
                  format: int32
                STEPNAME:
                  type: string
                  default: STEP1
                  maxLength: 100
                SUBSYSTEM:
                  type: string
                  default: TSQL
                  maxLength: 60
                TASKNAME:
                  type: string
                  maxLength: 100
              required:
              - COMMAND
              - DBNAME
              - DESCRIPTION
              - ENABLED
              - FREQUNITINT
              - FREQUNITTYPE
              - STARTDATE
              - STARTTIME
              - STEPID
              - TASKNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  R_JOBID:
                    type: string
                    format: byte
                    description: MS SQL server - error number of the last executed sql stmt
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
