PasteAsIs
The PasteAsIs action adds the copied part and its upstream structure to the specified part in the downstream structure, as is. The action creates new equivalence links between the downstream BOM and the upstream BOM. You can add the copied parts using inline or specific upstream and downstream navigation criteria.
You can also add the copied upstream part as is to the downstream structure in the context of change (change task or change notice).
The attributes in the request payload of the PasteAsIs action are described in detail in the following table:
Request Attribute
Description
Required
TargetRoot
Attribute to specify the root part of the target (downstream) structure in the BOM transformer.
Yes
TargetPath
Attribute to specify the path of the downstream part under which you want to add the copied part.
Yes
SourceRoot
Attribute to specify the root part of the upstream structure in the BOM transformer.
Yes
SourcePart
Attribute in the TransformationDefinitions collection to specify the OID of the upstream part that you want to copy.
Yes
SourcePaths
Array type attribute in the TransformationDefinitions collection to specify the path of the specified upstream part occurrence from its upstream root part.
Yes
ReviseExistingDownstream
Flag in the TransformationDefinitions collection to specify whether you want to allow the existing downstream objects to be revised or not during the transformation.
Optional
ExistingDownstreamAssociations
Array type of attribute in the TransformationDefinitions collection to specify the OID of the equivalent link between a specified upstream part and its existing downstream equivalent object.
Optional
DownstreamNavigationCriteria
Inline or specific navigation criteria applied in the downstream.
* 
PTC recommends that you specify the navigation criteria when you perform this action.
If not specified, the System Default filter is applied.
Optional
UpstreamNavigationCriteria
Inline or specific navigation criteria applied in the upstream.
* 
PTC recommends that you specify the navigation criteria when you perform this action.
If not specified, the System Default filter is applied.
Optional
ChangeOid
Attribute to specify the change task or change notice.
Optional
The request adds the specified upstream part and its structure under the specified downstream part and creates new equivalence links between the downstream BOM and the upstream BOM.
POST Windchill/servlet/odata/BomTransformation/PasteAsIs
For example, the response to the request URI is as follows:
{
"@odata.context": "$metadata#ExistingDownstreamAssociations",
"value": [
{
"ID": "OR:wt.associativity.EquivalenceLink:213450",
"UpstreamPartId": "OR:wt.part.WTPart:213274",
"DownstreamPartId": "OR:wt.part.WTPart:213408",
"EquivalenceLinkId": "OR:wt.associativity.EquivalenceLink:213440",
"IsEquivalenceLinkOutdated": false
}
"@PTC.AppliedContainerContext.LocalTimeZone": "Europe/Warsaw"
}
The attributes in the response for the PasteAsIs action are described in the following table:
Response Attribute
Description
ID
Attribute in a collection that returns the ID of the equivalent link between the upstream part and the downstream equivalent part.
UpstreamPartId
Attribute in a collection that returns the ID of the upstream part which was copied.
DownstreamPartId
Attribute in a collection that returns the ID of the downstream equivalent part.
EquivalenceLinkId
Attribute in a collection that returns the ID of the equivalence link between the upstream part and the downstream equivalent part.
IsEquivalenceLinkOutdated
Attribute in a collection that indicates whether the equivalence link between the upstream part and the downstream equivalent part is outdated or not.