Examples Task Code
A few examples of the APIs available available in the Project-specific domain for Task Code are as follows:
Getting Task Code 
To get the Task Code associated with a specific system, use to following GET URL
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibraries_ID>)/TaskCodes
Getting specific Task Code details 
To get details of a specific Task Code, use to following GET URL
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibraries_ID>)/TaskCodes(<TaskCode_ID>)
Updating specific Task Code details 
To update details of a specific Task Code, use to following PATCH URL
URL
PATCH /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibraries_ID>)/TaskCodes(<TaskCode_ID>)
Request Body
{
"Code": "1",
"RepairType": "Corrective"
}
Creating a Task Code 
To create a Task Code, use to following POST URL
URL
POST /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibraries_ID>)/TaskCodes
Request Body
{
"Code": "<Add Code>",
"Description": "<Add description>",
"Remarks": <Add Remark>,
"RepairType": "<Add repair type>",
"RepairTime": <Add repair time>,
"NumberOfPersons": <Add number of persons>,
"MTTRelement": "<Add MTTR element>"

}
Deleting a Task Code 
To delete a Task Code, use to following DELETE URL
URL
DELETE /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibraries_ID>)/TaskCodes(<TaskCode_ID>)