Modify the purge schedule
put
                    /mftapp/rest/v1/purges/schedules/{scheduleName}
Modifies the purge schedule. Note that this API works on the default schedule only.
                Request
Supported Media Types
                - application/json
 
Path Parameters
                - 
                    scheduleName: string
                    
                    Name of the Purge Schedule
 
Query Parameters
                - 
                        action(optional): string
                        
                        Action to modify Purge Schedule
 
Root Schema : mftPurgeScheduleDO
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            comment(optional): 
            string
            
 - 
            endDate(optional): 
            string
            End date of the purge schedule.
 - 
            frequency(optional): 
            string
            Frequency of the purge schedule.
 - 
            include(optional): 
            boolean
            
 - 
            instanceStatuses(optional): 
            object  instanceStatuses
            
            
 - 
            retentionPeriod(optional): 
            string
            Retention period in days.
 - 
            scheduleTime(optional): 
            string
            Scheduled time for the purge.
 - 
            startDate(optional): 
            string
            Start date of the purge schedule.
 - 
            transfers(optional): 
            object  transfers
            
            
 
Response
Supported Media Types
                - application/json
 
200 Response
500 Response
Something went wrong
                
                
                    Root Schema : Error information.
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        Error information.- 
            errorCode(optional): 
            string
            The error code that Oracle Managed File Transfer returns.
 - 
            errorKey(optional): 
            string
            The error key that Oracle Managed File Transfer returns.
 - 
            errorMessage(optional): 
            string
            A message describing the error that Oracle Managed File Transfer returns.
 
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]."
}
                    
                    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