Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC UDI Domain > Creating a Non-revisable UDI Super Set
  
Creating a Non-revisable UDI Super Set
You can create a non-revisable UDI super set without associated packaging configurations, details, and a subject. You can also create a non-revisable UDI super set with one or more associated packaging configurations, details, and a subject.
You can also create a non-revisable UDI super set for a subtype.
This example shows you how to create a non-revisable UDI super set. In this example, an automatic numbering scheme is defined for the UDI superset. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/UDI/UDISuperSets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Context@odata.bind": "Containers('OR:wt.inf.library.WTLibrary:267220')",
"CatalogNumber": "012345678901234",
"BrandName": "FDA1111",
"DeviceIdentifierIssuingAgency": {},
"MRISafetyStatus": {},
"LabeledAsNotMadeWithLatex": false,
"CombinationProduct": false,
"PrescriptionUse": false,
"SerialControlled": false,
"SingleUse": false,
"ExemptFromDirectPartMarking": false,
"UpToDate": false,
"ExpirationDateControlled": true,
"OverTheCounterUse": false,
"Templated": false,
"ExemptFromPremarketAuthorization": false,
"ManufactureDateControlled": false,
"VersionNumber": 0,
"ByDonationIdentificationNumber": false,
"DeviceCount": 0,
"PackagedSterile": false,
"ContainsHumanTissue": false,
"RequiresSterilization": false,
"ContainsLatex": false,
"LotControlled": false,
"KitProduct": false,
"Name": "CreateSimple-UDI",
"Details@odata.bind": [],
"PackagingConfigurations@odata.bind": []
}
The request creates a non-revisable UDI super set with a number returned in the Number attribute.
Example: Creating a Non-revisable UDI Super Set for a Subtype
* 
UDI super set is not created for the subtype marked as Not Instantiable.
This example shows you how to create a non-revisable UDI super set for a subtype. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/UDI/UDISuperSets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Context@odata.bind": "Containers('OR:wt.inf.library.WTLibrary:267220')",
"@odata.type": "#org.rnd.Simple1",
"CatalogNumber": "012345678901234",
"BrandName": "FDA1111",
"DeviceIdentifierIssuingAgency": {},
"MRISafetyStatus": {},
"LabeledAsNotMadeWithLatex": false,
"CombinationProduct": false,
"PrescriptionUse": false,
"SerialControlled": false,
"SingleUse": false,
"ExemptFromDirectPartMarking": false,
"UpToDate": false,
"ExpirationDateControlled": true,
"OverTheCounterUse": false,
"Templated": false,
"ExemptFromPremarketAuthorization": false,
"ManufactureDateControlled": false,
"VersionNumber": 0,
"ByDonationIdentificationNumber": false,
"DeviceCount": 0,
"PackagedSterile": false,
"ContainsHumanTissue": false,
"RequiresSterilization": false,
"ContainsLatex": false,
"LotControlled": false,
"KitProduct": false,
"Name": "My-Simple-Subtype-UDI",
"Details@odata.bind": [],
"PackagingConfigurations@odata.bind": []
}
The request creates a non-revisable UDI super set for the Simple1 subtype.
Example: Creating a Non-revisable UDI Super Set with an Associated Subject
* 
UDI super set is not created when it violates the cardinality constraints. The available OOTB association rule specifies Cardinality as 1:1.
This example shows you how to create a non-revisable UDI super set with a part as its associated subject. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/UDI/UDISuperSets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Context@odata.bind": "Containers('OR:wt.inf.library.WTLibrary:255035')",
"Subject@odata.bind": "Parts('OR:wt.part.WTPart:183127')",
"BrandName": "Amazon",
"ByDonationIdentificationNumber": false,
"CatalogNumber": "12345678901234",
"CombinationProduct": false,
"ContainsHumanTissue": false,
"ContainsLatex": false,
"DeviceCount": 111,
"DeviceDescription": "This is Desc",
"DeviceIdentifier": "12345678901234",
"DeviceIdentifierIssuingAgency": {
"Value": "1.3.160"
},
"DeviceIdentifierRecordPublishDate": "2022-10-05T00:00:00Z",
"DirectPartMarkingDeviceIdentifier": "12345678901234",
"DiscontinuedDate": "2022-10-05T00:00:00Z",
"ExemptFromDirectPartMarking": false,
"ExemptFromPremarketAuthorization": false,
"ExpirationDateControlled": false,
"KitProduct": false,
"LabeledAsNotMadeWithLatex": false,
"LabelerDUNS": "123456789",
"LotControlled": false,
"MRISafetyStatus": {
"Value": "C106045"
},
"ManufactureDateControlled": false,
"ModelNumber": "12345678901234",
"ModelNumberFamily": null,
"ModifiedBy": "Demo, User",
"Name": "withPart12",
"OverTheCounterUse": false,
"PackagedSterile": false,
"PrescriptionUse": false,
"RequiresSterilization": false,
"SerialControlled": false,
"SingleUse": false,
"Templated": false,
"UnitOfUseDeviceIdentifier": "12345678901234"
}
The request creates a non-revisable UDI super set with the specified part as the associated subject of the UDI super set.
Example: Creating a Non-revisable UDI Super Set with an Associated Detail
This example shows you how to create a non-revisable UDI super set with an associated detail. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/UDI/UDISuperSets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Context@odata.bind": "Containers('OR:wt.inf.library.WTLibrary:267220')",
"CatalogNumber": "012345678901234",
"BrandName": "FDA1111",
"DeviceIdentifierIssuingAgency": {},
"MRISafetyStatus": {},
"LabeledAsNotMadeWithLatex": false,
"CombinationProduct": false,
"PrescriptionUse": false,
"SerialControlled": false,
"SingleUse": false,
"ExemptFromDirectPartMarking": false,
"UpToDate": false,
"ExpirationDateControlled": true,
"OverTheCounterUse": false,
"Templated": false,
"ExemptFromPremarketAuthorization": false,
"ManufactureDateControlled": false,
"VersionNumber": 0,
"ByDonationIdentificationNumber": false,
"DeviceCount": 0,
"PackagedSterile": false,
"ContainsHumanTissue": false,
"RequiresSterilization": false,
"ContainsLatex": false,
"LotControlled": false,
"KitProduct": false,
"Name": "CreateSimple-UDI",
"Details@odata.bind": [
{
"@odata.type": "#PTC.UDI.FDAPremarketAuthorizationNumber",
"UdissfdaPremarketAuthorizationNumber": "ABCD12",
"UdissfdaSupplementNumber": "SAD2312",
"Context@odata.bind": "Containers('OR:wt.inf.library.WTLibrary:256401')"
}
],
"PackagingConfigurations@odata.bind": []
}
Example: Creating a Non-revisable UDI Super Set with an Associated Packaging Configuration
This example shows you how to create a non-revisable UDI super set with an associated packaging configuration. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/UDI/UDISuperSets
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Context@odata.bind": "Containers('OR:wt.inf.library.WTLibrary:267220')",
"CatalogNumber": "012345678901234",
"BrandName": "FDA1111",
"DeviceIdentifierIssuingAgency": {},
"MRISafetyStatus": {},
"LabeledAsNotMadeWithLatex": false,
"CombinationProduct": false,
"PrescriptionUse": false,
"SerialControlled": false,
"SingleUse": false,
"ExemptFromDirectPartMarking": false,
"UpToDate": false,
"ExpirationDateControlled": true,
"OverTheCounterUse": false,
"Templated": false,
"ExemptFromPremarketAuthorization": false,
"ManufactureDateControlled": false,
"VersionNumber": 0,
"ByDonationIdentificationNumber": false,
"DeviceCount": 0,
"PackagedSterile": false,
"ContainsHumanTissue": false,
"RequiresSterilization": false,
"ContainsLatex": false,
"LotControlled": false,
"KitProduct": false,
"Name": "CreateSimple-UDI",
"Details@odata.bind": [],
"PackagingConfigurations@odata.bind": [
{
"PackageDeviceIdentifier": "pid1",
"Quantity": "444",
"Description": "packagedeviceid"
}
]
}