This API configures a job with the updated runtime information using job ID.
You can update one or more attributes of the job using this API. If a parameter is not provided in the request or is undefined
, then the existing value for the parameter is retained.
You can also use this API to create a job by providing a job name along with the job in the URI. If you use the API to create a job, the parameters must conform to the same constraints as provided in the create job API. You must also ensure that the job name in the request URI matches with the job name in the request body.
PUT /scheduler/jobs/ {jobId}
Path
Parameter |
Required |
Data Type |
Description |
---|---|---|---|
jobId |
Yes |
integer |
ID of the job to be updated |
Body
Parameter |
Data Type |
Description |
---|---|---|
|
string |
Sets the description of the job. |
|
boolean |
Determines if a job must be activated or deactivated. |
|
string |
Sets the job action url.
|
|
string |
HTTP method of the job action endpoint URL. Allowed values are “GET”, “POST”, “PUT”, and “DELETE”. |
|
string/object/null |
Start time for the job. The scheduler respects the start time of both the schedule and the job. For more information about supported formats, see Date and Time Format. |
|
string/object/null |
End time for the job. The scheduler respects the end time of both the schedule and the job. For more information about supported formats, see Date and Time Format. |
|
object |
The
|
PUT /scheduler /jobs/3
{
"active": true,
"httpMethod": "GET"
}
The call was successful.
{
"success": true
}
The API was unable to process the request because of invalid data provided.
Related Information