メインコンテンツへスキップ
POST
https://cloud.cdata.com
/
api
/
job
/
create
Create Job
curl --request POST \
  --url https://cloud.cdata.com/api/job/create
{
  "jobs": [
    {
      "id": "string",
      "name": "string",
      "enabled": true,
      "created": "2024-01-01T00:00:00Z",
      "lastModified": "2024-01-01T00:00:00Z",
      "nextRunTime": "2024-01-01T00:00:00Z",
      "intervalUnit": "Hour",
      "intervalValue": 1,
      "logVerbosity": 1,
      "lastRun": {
        "dateTime": "0001-01-01T00:00:00Z",
        "duration": 63894847975,
        "status": "JOB_QUEUED",
        "rowsAffected": 0,
        "nextRunTime": "0001-01-01T00:00:00Z"
      },
      "params": {
        "timeCheckColumn": "",
        "autoTruncateStrings": "false",
        "sourceConnection": "f6f3cfe6-72e2-4edb-914f-4409c01c1418",
        "sourceConnectionName": "MailChimp1",
        "sourceName": "MailChimp",
        "sourceSchema": "MailChimp",
        "sourceTable": "Conversations"
      }
    }
  ]
}

Payload Parameters

jobType
string
必須
The type of job that the user wants to run (Caching or ScheduledQuery).
intervalUnit
string
必須
A string representing the time interval (Hour/Day/Week/Month).
intervalValue
integer
必須
An integer that represents how many of the selected frequency unit the job should wait before running again.
logVerbosity
integer
必須
An enum indicating the level of log verbosity (1-5).
enabled
boolean
A Boolean value indicating whether the job is enabled. The default value is true.
definedNextRun
string
An optional DateTime value that can be used to set the initial start time for the job.
params
object
必須
An object containing different job details depending on if the job is a cache job or a scheduled query. See examples below.For cache jobs:
  • timeCheckColumn: string
  • autoTruncateStrings: string
  • sourceConnectionName: string
  • sourceName: string
  • sourceSchema: string
  • sourceTable: string
For scheduled queries:
  • name: string
  • query: string
  • destinationWriteScheme: string
  • destinationConnectionName: string
  • destinationSchema: string
  • destinationTable: string

Responses

200

HTTP 200 OK
{
  "jobs": [
    {
      "id": "string",
      "name": "string",
      "enabled": true,
      "created": "2024-01-01T00:00:00Z",
      "lastModified": "2024-01-01T00:00:00Z",
      "nextRunTime": "2024-01-01T00:00:00Z",
      "intervalUnit": "Hour",
      "intervalValue": 1,
      "logVerbosity": 1,
      "lastRun": {
        "dateTime": "0001-01-01T00:00:00Z",
        "duration": 63894847975,
        "status": "JOB_QUEUED",
        "rowsAffected": 0,
        "nextRunTime": "0001-01-01T00:00:00Z"
      },
      "params": {
        "timeCheckColumn": "",
        "autoTruncateStrings": "false",
        "sourceConnection": "f6f3cfe6-72e2-4edb-914f-4409c01c1418",
        "sourceConnectionName": "MailChimp1",
        "sourceName": "MailChimp",
        "sourceSchema": "MailChimp",
        "sourceTable": "Conversations"
      }
    }
  ]
}