With the /NestingConfigurationProfiles endpoint user can manage NestingConfigurationProfiles from the database.
GET
/api/NestingConfigurationProfiles/List
Get a list of all NestingConfigurationProfiles
Request Example
/api/NestingConfigurationProfiles/List
RESPONSE EXAMPLE
[
{
"Id": "2969fdc0-da0b-4b3a-ac5d-c491fc4ce3f4",
"Name": "string",
"PageWidth": number,
"PageHeight": number,
"ProductSpacing": number,
"Mirror": true/false,
"AutoRotate": true/false,,
"AddBarcodes": true/false,,
"BarcodeSize": number,
"AdminUnits": "in",
"NestingType": number,
"AddBorders": true/false,,
"CornerRadius": number,
"BorderDistance": number,
"BorderThickness": number,
"BorderColor": "#000000",
"BorderStyle": "Rectangle",
"CircularMarkDiameter": number,
"DistanceFromTop": number,
"DistanceFromEdge": number,
"MaxHorzSpacing": number,
"MaxVertSpacing": number,
"CutLinesFormat": "None",
"IsSeperateCutFile": true/false,,
"ZundMaterialName": null,
"ZundOutputFolder": null,
"Labels": true/false,,
"LabelDistance": number,
"Code": "string",
"EnableSKU": true,
"EnableDate": true,
"PrintOneCodePerJob": true/false,,
"NestFromBottomToTop": true/false,,
"NestFromRightToLeft": true/false,,
"HeightUnlimited": true,
"PrintBatch": true/false,,
"MarginLeft": number,
"MarginBottom": number
},
{...}
]
GET
/api/NestingConfigurationProfiles/Get
Get a nestingConfigurationProfile
Request Example
/api/NestingConfigurationProfiles/Get?id=nestingConfigurationProfileId&name=nestingConfigurationProfileName
Use id parameter to get nestingConfigurationProfile by id or
Use name parameter to get nestingConfigurationProfile by name
RESPONSE EXAMPLE
If found, a nestingConfigurationProfile is returned with status code 200. Otherwise an error with code and message is returned with status code 404
{
"Id": "string",
"Name": "string",
"Prefix": "string",
"nestingConfigurationProfileType": "string",
"FolderPath": "string"
}
POST
/api/NestingConfigurationProfiles/Create
Create a nestingConfigurationProfile
Model Request Example
Name, PageWidth, PageHeight, ProductSpacing is required
{
"Name": "string",
"PageWidth": number,
"PageHeight": number,
"ProductSpacing": number,
"Mirror": true/false,,
"AutoRotate": true/false,,
"AddBarcodes": true/false,,
"BarcodeSize": number,
"AdminUnits": "in",
"NestingType": number,
"AddBorders": true/false,,
"CornerRadius": number,
"BorderDistance": number,
"BorderThickness": number,
"BorderColor": "#000000",
"BorderStyle": "stirng", // Rectangle or Rounded Rectangle
"CircularMarkDiameter": number,
"DistanceFromTop": number,
"DistanceFromEdge": number,
"MaxHorzSpacing": number,
"MaxVertSpacing": number,
"CutLinesFormat": "string", // Zund
"IsSeperateCutFile": true/false,,
"ZundMaterialName": null,
"ZundOutputFolder": null,
"Labels": true/false,,
"LabelDistance": 3.0,
"Code": "string", // QRCode or Barcode
"EnableSKU": true/false,,
"EnableDate": true/false,,
"PrintOneCodePerJob": true/false,,
"NestFromBottomToTop": true/false,,
"NestFromRightToLeft": true/false,,
"HeightUnlimited": true/false,,
"PrintBatch": true/false,,
"MarginLeft": number,
"MarginBottom": number,
}
Response Example
If the operation is successful a nestingConfigurationProfile will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409
PUT
/api/NestingConfigurationProfiles/Update
Update a nestingConfigurationProfile
Request Example
/api/NestingConfigurationProfiles/Update?id=nestingConfigurationProfileId&name=nestingConfigurationProfileName
Use id parameter to identify the nestingConfigurationProfile to update by id or
Use name parameter to identify the nestingConfigurationProfile to update by name
Model Request Example
Name, PageWidth, PageHeight, ProductSpacing is required
All fields are updated
{
"Name": "string",
"PageWidth": number,
"PageHeight": number,
"ProductSpacing": number,
"Mirror": true/false,,
"AutoRotate": true/false,,
"AddBarcodes": true/false,,
"BarcodeSize": number,
"AdminUnits": "in",
"NestingType": number,
"AddBorders": true/false,,
"CornerRadius": number,
"BorderDistance": number,
"BorderThickness": number,
"BorderColor": "#000000",
"BorderStyle": "stirng", // Rectangle or Rounded Rectangle
"CircularMarkDiameter": number,
"DistanceFromTop": number,
"DistanceFromEdge": number,
"MaxHorzSpacing": number,
"MaxVertSpacing": number,
"CutLinesFormat": "string", // Zund
"IsSeperateCutFile": true/false,,
"ZundMaterialName": null,
"ZundOutputFolder": null,
"Labels": true/false,,
"LabelDistance": 3.0,
"Code": "string", // QRCode or Barcode
"EnableSKU": true/false,,
"EnableDate": true/false,,
"PrintOneCodePerJob": true/false,,
"NestFromBottomToTop": true/false,,
"NestFromRightToLeft": true/false,,
"HeightUnlimited": true/false,,
"PrintBatch": true/false,,
"MarginLeft": number,
"MarginBottom": number,
}
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409
DELETE
/api/NestingConfigurationProfiles/Delete
Delete a nestingConfigurationProfile
Request Example
/api/NestingConfigurationProfiles/Delete?id=nestingConfigurationProfileId&name=nestingConfigurationProfileName
Use id parameter to identify the nestingConfigurationProfile to update by id or
Use name parameter to identify the nestingConfigurationProfile to delete by name
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409