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