Examples Task
A few examples of the APIs available available in the Project-specific domain for Task are as follows:
Getting Task 
To get the Task associated with a specific system, use to following GET URL
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibrary_ID>)/TaskGroups(<TaskGroups_ID>)/Tasks
Getting specific Task details 
To get details of a specific Task, use to following GET URL.
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibrary_ID>)/TaskGroups(<TaskGroups_ID>)/Tasks(<Task_ID>)
Updating a specific Task 
To update details for a specific task, use the following PATCH URL with the request body.
URL
PATCH /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibrary_ID>)/TaskGroups(<TaskGroups_ID>)/Tasks(<Task_ID>)
Request Body
{
"TaskCode":"<TaskCode>",
"TaskQty": <TaskQuantity>
}
Creating a Task 
To create a task, use the following POST URL with the request body.
URL
POST /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibrary_ID>)/TaskGroups(<TaskGroups_ID>)/Tasks
Request Body
{
"TaskCode":"<TaskCode>",
"TaskQty": <TaskQuantity>
}
Deleting a Task 
To delete a specific task, use the following DELETE URL.
URL
DELETE /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/MaintLibraries(<MaintLibrary_ID>)/TaskGroups(<TaskGroups_ID>)/Tasks(<Tasks_ID>)