Update history time to live
Updates history time to live for decision definition. The field is used within History cleanup.
Method
PUT /decision-definition/{id}/history-time-to-live
PUT /decision-definition/key/{key}/history-time-to-live (updates the latest version of the decision definition which belongs to no tenant)
PUT /decision-definition/key/{key}/tenant-id/{tenant-id}/history-time-to-live (updates the latest version of the decision definition for tenant)
Parameters
Path Parameters
| Name | Description |
|---|---|
| id | The id of the decision definition to change history time to live. |
Request Body
A JSON object with the following properties:
| Name | Description |
|---|---|
| historyTimeToLive | New value for historyTimeToLive field of decision definition. Can be null. Can not be negative. |
Result
This method returns no content.
Response Codes
| Code | Media type | Description |
|---|---|---|
| 204 | Request successful. | |
| 400 | application/json | Returned if some of the request parameters are invalid. |
| 404 | application/json | Decision definition with given id does not exist. See the Introduction for the error response format. |
Example
Request
PUT /decision-definition/aDecisionDefinitionId/history-time-to-live
{
"historyTimeToLive" : 5
}
Response
Status 204. No content.