Running Daily Maintenance While Skipping the Scheduled Daily Maintenance (v2)
Use this REST API (v2) if you want to run daily maintenance with an option to skip the next scheduled daily maintenance.
Before using the REST resources, you must understand how to access the REST resources and other important concepts. See About the REST APIs. Using this REST API requires prerequisites. See Prerequisites.
This API is version v2
Required Roles
Service Administrator
REST Resource
POST /interop/rest/v2/maintenance/rundailymaintenance
Note:
Before using the REST resources, you must understand how to access the REST resources and other important concepts. See Implementation Best Practices for EPM Cloud REST APIs. Using this REST API requires prerequisites. See Prerequisites.
Request
Supported Media Types: application/json
The following table summarizes the request parameters.
Table 11-12 Parameters
Name | Description | Type | Required | Default |
---|---|---|---|---|
skipNext |
Specifies if the next scheduled daily maintenance time should be
skipped, true or false |
String | Yes | false |
Example URL and Payload
https://<BASE URL>/interop/rest/v2/maintenance/rundailymaintenance
Response
Supported Media Types: application/json
{"skipNext":"true"}
Table 11-13 Parameters
Parameters | Description |
---|---|
details |
In case of errors, details are published with the error string |
status |
See Migration Status Codes |
links |
Detailed information about the link |
href |
Links to API call |
action |
The HTTP call type |
rel |
Possible value: self
|
data |
Null |
Example of Response Body
The following shows an example of the response body in JSON format.
{
"details": null,
"status": -1,
"items": null,
"links": [
{
"href": " https://<BASE-URL>/interop/rest/v2/maintenance/rundailymaintenance",
"action": "POST",
"rel": "self",
"data": null
},
{
"href": " https://<BASE-URL>/interop/rest/v2/status/service/maintenancewindow/1660115130723",
"action": "GET",
"rel": "Job Status",
"data": null
}
]
}
Sample cURL command
curl -X POST -s -u '<USERNAME>:<PASSWORD>' -o response.txt -D respHeader.txt -H 'Content-Type: application/json' -d '{"skipNext":"true"}' 'https://<BASE URL>/interop/rest/v2/maintenance/rundailymaintenance'