---
title: "CreateScheduledExportJobRequest"
url: "https://developer.tesma.com/apis/tesma-platform-api-v1/versions/333907fb-f0a7-4e20-b01e-c9915c73321a/schemas/CreateScheduledExportJobRequest"
---

> Full API specification: https://developer.tesma.com/apis/tesma-platform-api-v1/versions/333907fb-f0a7-4e20-b01e-c9915c73321a.md

# CreateScheduledExportJobRequest

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: tesma
  version: v1
servers:
  - url: https://api.tesma.com
components:
  schemas:
    ExportSource:
      enum:
        - none
        - leaseSchedules
        - leaseScheduleAssets
        - invoices
        - invoiceAssets
        - collections
        - collectedAssets
        - ownedAssets
      type: string
    ExportFiletype:
      enum:
        - xlsx
        - csv
      type: string
    ExportScheduleRepetition:
      enum:
        - weekly
        - monthly
      type: string
    DayOfWeek:
      enum:
        - sunday
        - monday
        - tuesday
        - wednesday
        - thursday
        - friday
        - saturday
      type: string
    CreateScheduledExportJobRequest:
      additionalProperties: false
      properties:
        active:
          type: boolean
        dataSourceLoadOptions:
          maxLength: 2147483647
          minLength: 0
          type: string
        excludeEmpty:
          type: boolean
        executionTime:
          maxLength: 2147483647
          minLength: 0
          pattern: ([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]
          type: string
        exportSource:
          $ref: "#/components/schemas/ExportSource"
        exportSourceData:
          type: "null"
        filetype:
          $ref: "#/components/schemas/ExportFiletype"
        gridLayout:
          maxLength: 2147483647
          minLength: 0
          type: string
        languageSettings:
          maxLength: 5
          minLength: 0
          type: string
        name:
          maxLength: 50
          minLength: 0
          pattern: ^((?!(<[sS][cC][rR][iI][pP][tT]|\[\%|%\]))(.|\s))*$
          type: string
        recipientEmail:
          maxLength: 2000
          minLength: 0
          type: string
        repetition:
          $ref: "#/components/schemas/ExportScheduleRepetition"
        repetitionDayOfMonth:
          format: int32
          maximum: 31
          minimum: 0
          type:
            - "null"
            - integer
        repetitionDaysOfWeek:
          items:
            $ref: "#/components/schemas/DayOfWeek"
          type:
            - "null"
            - array
        repetitionMonths:
          items:
            format: int32
            type: integer
          type:
            - "null"
            - array
        ruleFieldName:
          maxLength: 30
          minLength: 0
          type:
            - "null"
            - string
        ruleNumberOfDays:
          format: int32
          maximum: 365
          minimum: -365
          type: integer
        subject:
          maxLength: 100
          minLength: 0
          pattern: ^((?!(<[sS][cC][rR][iI][pP][tT]|\[\%|%\]))(.|\s))*$
          type: string
        timezone:
          maxLength: 100
          minLength: 0
          type: string
        validFrom:
          format: date
          type:
            - "null"
            - string
        validTo:
          format: date
          type:
            - "null"
            - string
      required:
        - dataSourceLoadOptions
        - excludeEmpty
        - executionTime
        - gridLayout
        - languageSettings
        - name
        - recipientEmail
        - subject
        - timezone
      type: object
```
