Set Job Due Date

Updates the due date of a job by id.

Method

PUT /job/{id}/duedate

Parameters

Path Parameters

Name Description
id The id of the job to be updated.

Request Body

A JSON object with the following properties:

Name Description
duedate The date to set when the job has the next execution.
cascade A boolean value to indicate if modifications to the due date should cascade to subsequent jobs. (e.g. Modify the due date of a timer by +15 minutes. This flag indicates if a +15 minutes should be applied to all subsequent timers.) This flag only affects timer jobs and only works if due date is not null. Default: false

Result

This method returns no content.

Response Codes


Code Media type Description
204 Request successful.
404 application/json Job with given id does not exist. See the Introduction for the error response format.
500 application/json The due date could not be set successfully. See the Introduction for the error response format.

Example

Request

PUT /job/aJobId/duedate

Request Body:

{
  "duedate": "2013-08-13T18:43:28.000+0200",
  "cascade": false
}

Response

Status 204. No content.

目录: