Checking in/Checking Out/Revising/Changing the State of Made From Sets
You can check in, check out, revise, perform state change operations on single or multiple Made From Set objects.
Example: Checking out Multiple Made From Set Objects
The following example shows how you can check out two Made From Set objects using the following POST URI with the request body.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
URI
POST Windchill/servlet/odata/BomTransformation/CheckOutMadeFromSets
Request Body
{
"Workables": [
{
"ID": "OR:wt.part.WTPart:312935"
},
{
"ID": "OR:wt.part.WTPart:312436"
}
]
}
Example: Checking out a Specific Made From Set Object
The following example shows how you can check out a specific Made From Set object using the following POST URI.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
URI
POST Windchill/servlet/odata/BomTransformation/MadeFromSets('OR:wt.part.WTPart:314730')/PTC.BomTransformation.CheckOut
Request Body
{}
Example: Undo Checkout of Multiple Made From Set Objects
This example shows you how to undo check out of two Made From Set objects. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/BomTransformation/UndoCheckOutMadeFromSets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Workables": [
{
"ID": "OR:wt.part.WTPart:312935"
},
{
"ID": "OR:wt.part.WTPart:312436"
}
]
}
Example: Undo Checkout of a Specific Made From Set Object
This example shows you how to undo check out of a specific Made From Set object. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/BomTransformation/MadeFromSets('OR:wt.part.WTPart:314730')/PTC.BomTransformation.UndoCheckOut
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{}
Example: Checking in Multiple Made From Set Objects
The following example shows how you can check in two Made From Set objects using the following POST URI with the request body.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
URI
POST Windchill/servlet/odata/BomTransformation/CheckInMadeFromSets
Request Body
{
"Workables": [
{
"ID": "OR:wt.part.WTPart:312935"
},
{
"ID": "OR:wt.part.WTPart:312436"
}
]
}
Example: Checking in a Specific Made From Set Object
The following example shows how you can check in a specific Made From Set object using the following POST URI.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
URI
POST Windchill/servlet/odata/BomTransformation/MadeFromSets('OR:wt.part.WTPart:314730')/PTC.BomTransformation.CheckIn
Request Body
{}
Example: Changing the State of Multiple Made From Set Objects
The following example shows how you can change the (life cycle) state of two Made From Set objects with multiple versions. In this request, you can specify the OID of only the latest iteration of a particular revision of the object. For example, if one Made From Set object has versions A.1 and A.2 and the other Made From Set object has versions C.1, C.2, and C.3, then the request changes the state only for A.2 and C.3, respectively. Use the following POST URI with the request body.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
URI
POST Windchill/servlet/odata/BomTransformation/SetStateMadeFromSets
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:312901"
},
{
"ID": "OR:wt.part.WTPart:314761"
}
],
"State": {
"Value": "CANCELLED"
}
}
Example: Changing the State of a Specific Made From Set Object
The following example shows how you can change the (life cycle) state of a Made From Set object with multiple versions. In this request, you can specify only the latest iteration of a particular revision of the object. For example, consider a Made From Set object with three iterations of its Revision A – A.1, A.2 and A.3. The request changes the state only for A.3. Use the following POST URI with the request body.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
URI
POST Windchill/servlet/odata/BomTransformation/MadeFromSets('OR:wt.part.WTPart:314730')/PTC.BomTransformation.SetState
Request Body
{
"State": {
"Value": "CANCELLED"
}
}
Revising Multiple Made From Set Objects
This example shows you how to increment the revision of each of the two Made From Set objects, by one. For example, if you specify the OID of one Made From Set object of Revision M and the OID of other Made From Set object of Revision C in the request body, then the request revises the objects to Revision N and Revision D, respectively. Use the following POST URI with the request body.
* 
If you want to revise each of the two objects simultaneously from Revision A to J, then you must send the request nine times by replacing the older Revision OIDs of the objects with their newer Revision OIDs in each subsequent request. For example, if you send the first request that revises the objects from Revision A to B, then in the second request, you must specify the OIDs of Revision B in the request body to revise the objects from Revision B to C. Similarly, in the third request, you must specify the OIDs of Revision C to revise the objects from Revision C to D, and so on.
URI
POST /Windchill/servlet/odata/BomTransformation/ReviseMadeFromSets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MadeFromSets": [
{
"ID": "OR:wt.part.WTPart:312901"
},
{
"ID": "OR:wt.part.WTPart:312851"
}
]
}
Revising a Specific Made From Set Object
This example shows how you can revise a specific Made From Set object to the desired Revision directly. For example, if the existing Revision of the object is B, then the request revises the specified Made From Set object to Revision P, directly. Use the following POST URI.
URI
POST /Windchill/servlet/odata/BomTransformation/MadeFromSets('OR:wt.part.WTPart:314730')/PTC.BomTransformation.Revise
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"VersionId": "P"
}
Retrieving Check out Allowed Information for a Made From Set Object
This example shows you how to retrieve check out allowed information for a Made From Set object. Use the following GET URI.
URI
GET /Windchill/servlet/odata/BomTransformation/MadeFromSets('OR:wt.part.WTPart:314730')/PTC.BomTransformation.IsCheckoutAllowed()