Update a job
PATCH
/api/v1/jobs/{job_id}
const url = 'https://example.com/api/v1/jobs/1';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"new_settings":{},"fields_to_remove":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/jobs/1 \ --header 'Content-Type: application/json' \ --data '{ "new_settings": {}, "fields_to_remove": [ "example" ] }'Update job settings with option to remove specific fields.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”job_id
required
Job Id
integer
Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
JobUpdateRequest
Request model for updating job settings.
object
fields_to_remove
Any of:
Array<string>
null
Examplegenerated
{ "new_settings": {}, "fields_to_remove": [ "example" ]}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
JobResponse
Response model for job information (flattened).
object
job_name
required
Job Name
Name of the job
string
job_id
required
Job Id
integer
is_active
Is Active
boolean
Example
{ "is_active": true}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}