Retrieving Option Set associated with Specific Object in a Set of Objects
Example: Retrieving Each Option Set associated with Each Specific Resource Object in a Set of Resources Objects
This example shows you how to retrieve each Option Set associated with each specific manufacturing resource object in a set of resources objects. The example shows you how to retrieve each Option Set associated with each specific Process Material, Tooling, Work Center and Skill object provided in the request. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdPlatformMgmt/GetAssignedOptionSets?$expand=OptionSetAssignable,AssignedOptionSet
* 
You must apply $expand on OptionSetAssignable and AssignedOptionSet to retrieve information, otherwise an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OptionSetAssignables": [
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMSkill:585373"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMTooling:585385"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:585397"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMWorkCenter:585409"
}
]
}
Example: Retrieving Each Option Set Associated with Each Specific Part Object in a Set of Parts Objects
This example shows you how to retrieve each Option Set associated with each specific Part object in a set of Parts objects. In the example, the request retrieves two Option Sets, one for each Part object provided in the request. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdPlatformMgmt/GetAssignedOptionSets?$expand=OptionSetAssignable,AssignedOptionSet
* 
You must apply $expand on OptionSetAssignable and AssignedOptionSet to retrieve information, otherwise an empty list is returned.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OptionSetAssignables": [
{
"ID": "OR:wt.part.WTPart:608871"
},
{
"ID": "OR:wt.part.WTPart:608883"
}
]
}