Creating a Change Notice 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 a Change Notice with Change Tasks and Affected Objects
The following example shows you how to create a Change Notice with multiple Change Tasks and Affected Objects. Each Change Task has an Affected Object associated with it. Use the following POST URI with the request body.
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')"
]
}
]
}