Example: Creating Change Notices with Multiple Change Tasks
The following example shows you how to create a Change Notice with multiple Change Tasks. Use the following POST request with the request body that contains the information for two Change tasks.
URI
POST /Windchill/servlet/odata/ChangeMgmt/ChangeNotices HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "Test",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:110771')",
"ChangeNoticeComplexity": {
"Value": "SIMPLE"
},
"ImplementationPlan": [
{
"Name": "WRS_ChangeTask_Deepinset1",

"Assignee@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
],
"Reviewer@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
]
},
{
"Name": "WRS_ChangeTask_Deepinset2",

"Assignee@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
],
"Reviewer@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
]
}
]
}
Example: Creating Change Notices with Change Tasks and Affected Objects
The following example shows you how to create a Change Notice with multiple Change Tasks and Affected Objects. Use the following URI with the POST method and the following request body. Each change task has an affected object associated with it.
URI
POST /Windchill/servlet/odata/ChangeMgmt/ChangeNotices HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "Test",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:110771')",
"ChangeNoticeComplexity": {
"Value": "SIMPLE"
},
"ImplementationPlan": [
{
"Name": "WRS_ChangeTask_Deepinset1",

"Assignee@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
],
"Reviewer@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
],
"AffectedObjects@odata.bind": [
"Changeables('VR:wt.part.WTPart:112632')"
]
},
{
"@odata.type": "#PTC.ChangeMgmt.NoType",
"Name": "WRS_ChangeTask_Deepinset2",

"Assignee@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
],
"Reviewer@odata.bind": [
"Users('OR%3Awt.org.WTUser%3A12')"
],
"AffectedObjects@odata.bind": [
"Changeables('VR:wt.part.WTPart:112570')"
]
}
]
}