patch
https://api.liveramp.com/analytics-environment/v1/schedule-jobs/
Update Schedule Job
Request example for Python or PySpark
curl --location --request PATCH 'https://api.liveramp.com/analytics-environment/v1/schedule-jobs/${jobId}' \
--header 'Tenant-ID: ${tenantId}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${access_tooken}' \
--data '{
"name": "test1",
"description": "test1",
"dataprocVersion": "dataproc2.1",
"mainFile": "gs://lranalytics-eu-123456-cert-awob-coderepo/testFolder01/111.py",
"pyFiles": [
"gs://lranalytics-eu-123456-cert-awob-coderepo/1.py"
],
"enabled": true,
"jobArgs": "",
"additionalPackages": "",
"onetimeJob": false,
"startDate": "",
"frequency": "25 0 * * 4",
}'
Request example for disabling a BigQuery job
curl --location --request PATCH 'https://api-staging.liveramp.com/analytics-environment/v1/schedule-jobs/${jobId}' \
--header 'Tenant-ID: ${tenantId}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${access_tooken}' \
--data '{
"enabled":false
}'
Request example for changing a BigQuery job's frequency and job owner
curl --location --request PATCH 'https://api-staging.liveramp.com/analytics-environment/v1/schedule-jobs/${jobId}' \
--header 'Tenant-ID: ${tenantId}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${access_tooken}' \
--data '{
"bigqueryFrequency": "every day at 06:00 UTC",
"jobOwner": "[email protected]"
}'