Modifying Attributes of an Affected Object Link for a Change Request
This example shows you how to update the attributes of a specific Affected Object Link for an existing Change Request specified in the request URI. You must first reserve the change object before you run this request. Use the following PATCH URI with the request body.
URI
PATCH //Windchill/servlet/odata/ChangeMgmt/ChangeRequests('OR:wt.change2.WTChangeRequest2:267209')/CRAffectLinks('OR:wt.change2.RelevantRequestData2:267248')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Description": " Updated Description"
}
Example: Modifying a Model/Soft Attribute
This example shows you how to update a soft attribute and an attribute of a specific Affected Object Link for an existing Change Request specified in the request URI. You must first reserve the change object before you run this request. Use the following PATCH URI with the request body.
URI
PATCH //Windchill/servlet/odata/ChangeMgmt/ChangeRequests('OR:wt.change2.WTChangeRequest2:267209')/CRAffectLinks('OR:wt.change2.RelevantRequestData2:267248')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Description": "Updated Description2",
"TestAttribute": "Updated Soft Attribute"
}