Modify Purge Schedule.

put

/mftapp/rest/v1/purges/schedules/{scheduleName}

Modify purge schedule. Note that this API works on the default schedule only.

Request

Supported Media Types
Path Parameters
Query Parameters
Body ()
Root Schema : mftPurgeScheduleDO
Type: object
Show Source
Nested Schema : instanceStatuses
Type: object
Show Source
Nested Schema : transfers
Type: object
Show Source
Nested Schema : instanceStatus
Type: array
Show Source
Nested Schema : transfer
Type: array
Show Source
Example Request (application/json)
{
    "retentionPeriod":"7",
    "startDate":"10-05-2016",
    "instanceStatuses":{
        "instanceStatus":[
            "F",
            "C"
        ]
    },
    "include":true,
    "scheduleTime":"04:32:10",
    "comment":"No Comment",
    "transfers":{
        "transfer":[
            "T1",
            "T2"
        ]
    },
    "endDate":"10-07-2016",
    "frequency":"DAILY"
}
Back to Top

Response

Supported Media Types

200 Response

Purge Schedule modification succeeded.
Headers

500 Response

Something went wrong
Body ()
Root Schema : Error information.
Type: object
Title: Error information.
Show Source
Example Response (application/json)
{
    "errorCode":"MFT-5835",
    "errorKey":"MFT_ESS_PURGE_SCHEDULE_DEACTIVATE_EXCEPTION",
    "errorMessage":"Trying to deactivate a non-active Schedule Purge [Default_Purge_Schedule]."
}
Back to Top

Examples

The following example shows how to modify the default purge schedule by submitting a PUT request on the REST resource using cURL.
curl -i -X PUT -u <username>:<password> -H "Content-Type: application/json" -d '{"retentionPeriod":"45","startDate":"10-05-2019", "instanceStatuses":{"instanceStatus":[ "F", "C" ]}, "include":true,"scheduleTime":"04:32:10", "comment":"Test Comment", "transfers":{"transfer":["transfer_test1" ]}, "endDate":"10-07-2019", "frequency":"Daily"}, http://host:port/mftapp/rest/v1/purges/schedules/DefaultSchedule
Back to Top