Examples for Maintenance Logs
A few examples available in the Project-specific domain for maintenance logs are as follows:
Getting Maintenance Logs 
To get maintenance logs for a specific system, use the following GET URL.
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems(<systemID>)/Incidents(<incidentID>)/MaintenanceLogs
Getting specific Maintenance Logs 
To get details for a specific maintenance log for a system, use the following GET URL.
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems(<systemID>)/Incidents(<incidentID>)/MaintenanceLogs(<maintenancelogID>)
Updating Maintenance Logs 
To update details for a maintenance log for a system, use the following PATCH URL.
URL
PATCH /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems(<systemID>)/Incidents(<incidentID>)/MaintenanceLogs(<maintenancelogID>)
Request Body
{
"MaintenanceLogIdentifier": "UpdateMaintLog"
}
Updating System Tree Identifier of Maintenance Logs 
To update SystemTreeIdentifier for maintenance log for a system, use the following PUT URL.
URL
PUT /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems(<systemID>)/Incidents(<incidentID>)/MaintenanceLogs(<maintenancelogID>)/OverrideSystemTreeItem/$ref
Request Body
{
"@odata.id" : "Project_<projectID>/Systems(<systemID>)/TreeItems(<treeitemID>)"}
Creating Maintenance Logs 
To create a maintenance log for a system, use the following POST URL.
URL
POST /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems(<systemID>)/Incidents(<incidentID>)/MaintenanceLogs
Request Body
{
"MaintenanceLogIdentifier": "<maintenancelogidentifier>"
}
Deleting Maintenance Logs 
To delete a maintenance log for a system, use the following DELETE URL.
URL
DELETE /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems(<systemID>)/Incidents(<incidentID>)/MaintenanceLogs(<maintenancelogID>)