Update Job
curl --request PUT \
--url https://cloud.cdata.com/api/job/{jobId}/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobType": "<string>",
"intervalUnit": "<string>",
"intervalValue": 123,
"logVerbosity": 123,
"params": {
"sourceConnection": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceConnectionName": "<string>",
"sourceName": "<string>",
"sourceSchema": "<string>",
"sourceTable": "<string>",
"timeCheckColumn": "<string>",
"autoTruncateStrings": "false",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "<string>",
"colType": "<string>",
"isPrimaryKey": true
}
]
},
"enabled": true,
"definedNextRun": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://cloud.cdata.com/api/job/{jobId}/update"
payload = {
"jobType": "<string>",
"intervalUnit": "<string>",
"intervalValue": 123,
"logVerbosity": 123,
"params": {
"sourceConnection": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceConnectionName": "<string>",
"sourceName": "<string>",
"sourceSchema": "<string>",
"sourceTable": "<string>",
"timeCheckColumn": "<string>",
"autoTruncateStrings": "false",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "<string>",
"colType": "<string>",
"isPrimaryKey": True
}
]
},
"enabled": True,
"definedNextRun": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jobType: '<string>',
intervalUnit: '<string>',
intervalValue: 123,
logVerbosity: 123,
params: {
sourceConnection: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sourceConnectionName: '<string>',
sourceName: '<string>',
sourceSchema: '<string>',
sourceTable: '<string>',
timeCheckColumn: '<string>',
autoTruncateStrings: 'false',
replicateStartDate: '2024-01-01T00:00:00Z',
replicateInterval: 180,
mergeKeys: [{colName: '<string>', colType: '<string>', isPrimaryKey: true}]
},
enabled: true,
definedNextRun: '2023-11-07T05:31:56Z'
})
};
fetch('https://cloud.cdata.com/api/job/{jobId}/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.cdata.com/api/job/{jobId}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'jobType' => '<string>',
'intervalUnit' => '<string>',
'intervalValue' => 123,
'logVerbosity' => 123,
'params' => [
'sourceConnection' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sourceConnectionName' => '<string>',
'sourceName' => '<string>',
'sourceSchema' => '<string>',
'sourceTable' => '<string>',
'timeCheckColumn' => '<string>',
'autoTruncateStrings' => 'false',
'replicateStartDate' => '2024-01-01T00:00:00Z',
'replicateInterval' => 180,
'mergeKeys' => [
[
'colName' => '<string>',
'colType' => '<string>',
'isPrimaryKey' => true
]
]
],
'enabled' => true,
'definedNextRun' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.cdata.com/api/job/{jobId}/update"
payload := strings.NewReader("{\n \"jobType\": \"<string>\",\n \"intervalUnit\": \"<string>\",\n \"intervalValue\": 123,\n \"logVerbosity\": 123,\n \"params\": {\n \"sourceConnection\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceConnectionName\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"sourceSchema\": \"<string>\",\n \"sourceTable\": \"<string>\",\n \"timeCheckColumn\": \"<string>\",\n \"autoTruncateStrings\": \"false\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"<string>\",\n \"colType\": \"<string>\",\n \"isPrimaryKey\": true\n }\n ]\n },\n \"enabled\": true,\n \"definedNextRun\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://cloud.cdata.com/api/job/{jobId}/update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jobType\": \"<string>\",\n \"intervalUnit\": \"<string>\",\n \"intervalValue\": 123,\n \"logVerbosity\": 123,\n \"params\": {\n \"sourceConnection\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceConnectionName\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"sourceSchema\": \"<string>\",\n \"sourceTable\": \"<string>\",\n \"timeCheckColumn\": \"<string>\",\n \"autoTruncateStrings\": \"false\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"<string>\",\n \"colType\": \"<string>\",\n \"isPrimaryKey\": true\n }\n ]\n },\n \"enabled\": true,\n \"definedNextRun\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.cdata.com/api/job/{jobId}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobType\": \"<string>\",\n \"intervalUnit\": \"<string>\",\n \"intervalValue\": 123,\n \"logVerbosity\": 123,\n \"params\": {\n \"sourceConnection\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceConnectionName\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"sourceSchema\": \"<string>\",\n \"sourceTable\": \"<string>\",\n \"timeCheckColumn\": \"<string>\",\n \"autoTruncateStrings\": \"false\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"<string>\",\n \"colType\": \"<string>\",\n \"isPrimaryKey\": true\n }\n ]\n },\n \"enabled\": true,\n \"definedNextRun\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"jobType": "Caching",
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"name": "OData1 Categories",
"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": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceConnectionName": "OData1",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": true
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": true
}
]
}
}Job API
Update Job
Administrators, impersonating a service user, can use this call to update a specified job.
PUT
/
job
/
{jobId}
/
update
Update Job
curl --request PUT \
--url https://cloud.cdata.com/api/job/{jobId}/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobType": "<string>",
"intervalUnit": "<string>",
"intervalValue": 123,
"logVerbosity": 123,
"params": {
"sourceConnection": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceConnectionName": "<string>",
"sourceName": "<string>",
"sourceSchema": "<string>",
"sourceTable": "<string>",
"timeCheckColumn": "<string>",
"autoTruncateStrings": "false",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "<string>",
"colType": "<string>",
"isPrimaryKey": true
}
]
},
"enabled": true,
"definedNextRun": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://cloud.cdata.com/api/job/{jobId}/update"
payload = {
"jobType": "<string>",
"intervalUnit": "<string>",
"intervalValue": 123,
"logVerbosity": 123,
"params": {
"sourceConnection": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceConnectionName": "<string>",
"sourceName": "<string>",
"sourceSchema": "<string>",
"sourceTable": "<string>",
"timeCheckColumn": "<string>",
"autoTruncateStrings": "false",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "<string>",
"colType": "<string>",
"isPrimaryKey": True
}
]
},
"enabled": True,
"definedNextRun": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jobType: '<string>',
intervalUnit: '<string>',
intervalValue: 123,
logVerbosity: 123,
params: {
sourceConnection: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sourceConnectionName: '<string>',
sourceName: '<string>',
sourceSchema: '<string>',
sourceTable: '<string>',
timeCheckColumn: '<string>',
autoTruncateStrings: 'false',
replicateStartDate: '2024-01-01T00:00:00Z',
replicateInterval: 180,
mergeKeys: [{colName: '<string>', colType: '<string>', isPrimaryKey: true}]
},
enabled: true,
definedNextRun: '2023-11-07T05:31:56Z'
})
};
fetch('https://cloud.cdata.com/api/job/{jobId}/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.cdata.com/api/job/{jobId}/update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'jobType' => '<string>',
'intervalUnit' => '<string>',
'intervalValue' => 123,
'logVerbosity' => 123,
'params' => [
'sourceConnection' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sourceConnectionName' => '<string>',
'sourceName' => '<string>',
'sourceSchema' => '<string>',
'sourceTable' => '<string>',
'timeCheckColumn' => '<string>',
'autoTruncateStrings' => 'false',
'replicateStartDate' => '2024-01-01T00:00:00Z',
'replicateInterval' => 180,
'mergeKeys' => [
[
'colName' => '<string>',
'colType' => '<string>',
'isPrimaryKey' => true
]
]
],
'enabled' => true,
'definedNextRun' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.cdata.com/api/job/{jobId}/update"
payload := strings.NewReader("{\n \"jobType\": \"<string>\",\n \"intervalUnit\": \"<string>\",\n \"intervalValue\": 123,\n \"logVerbosity\": 123,\n \"params\": {\n \"sourceConnection\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceConnectionName\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"sourceSchema\": \"<string>\",\n \"sourceTable\": \"<string>\",\n \"timeCheckColumn\": \"<string>\",\n \"autoTruncateStrings\": \"false\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"<string>\",\n \"colType\": \"<string>\",\n \"isPrimaryKey\": true\n }\n ]\n },\n \"enabled\": true,\n \"definedNextRun\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://cloud.cdata.com/api/job/{jobId}/update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jobType\": \"<string>\",\n \"intervalUnit\": \"<string>\",\n \"intervalValue\": 123,\n \"logVerbosity\": 123,\n \"params\": {\n \"sourceConnection\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceConnectionName\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"sourceSchema\": \"<string>\",\n \"sourceTable\": \"<string>\",\n \"timeCheckColumn\": \"<string>\",\n \"autoTruncateStrings\": \"false\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"<string>\",\n \"colType\": \"<string>\",\n \"isPrimaryKey\": true\n }\n ]\n },\n \"enabled\": true,\n \"definedNextRun\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.cdata.com/api/job/{jobId}/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobType\": \"<string>\",\n \"intervalUnit\": \"<string>\",\n \"intervalValue\": 123,\n \"logVerbosity\": 123,\n \"params\": {\n \"sourceConnection\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sourceConnectionName\": \"<string>\",\n \"sourceName\": \"<string>\",\n \"sourceSchema\": \"<string>\",\n \"sourceTable\": \"<string>\",\n \"timeCheckColumn\": \"<string>\",\n \"autoTruncateStrings\": \"false\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"<string>\",\n \"colType\": \"<string>\",\n \"isPrimaryKey\": true\n }\n ]\n },\n \"enabled\": true,\n \"definedNextRun\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"jobType": "Caching",
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"name": "OData1 Categories",
"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": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceConnectionName": "OData1",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": true
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": true
}
]
}
}Authorizations
JWT token authentication. Include the token in the Authorization header as Bearer {token}. See Authentication for more information on creating a token.
Body
application/json
Response
200 - application/json
OK
Last modified on January 8, 2026
Was this page helpful?