With the /AutomaticNestingProfiles endpoint user can manage AutomaticNestingProfiles from the database.
GET
/api/AutomaticNestingProfiles/List
Get a list of all AutomaticNestingProfiles
Request Example
/api/AutomaticNestingProfiles/List
Response Example
[
{
"Id": "string",
"Name": "string",
"Quantity": 1,
"OnQuantityTrigger": true,
"TimeInterval": 1.0,
"OnTimeIntervalTrigger": true,
"MaxHeight": 2.0,
"OnMaxHeightTrigger": true,
"ConfigurationName": "string",
"MediaType": "string",
}
]
GET
/api/AutomaticNestingProfiles/Get
Get a automaticNestingProfile
Request Example
/api/AutomaticNestingProfiles/Get?id=AutomaticNestingProfilesId&name=AutomaticNestingProfilesIdName
Use id parameter to get automaticNestingProfile by id or
Use name parameter to get automaticNestingProfile by name
Response Example
If found, a automaticNestingProfile is returned with status code 200. Otherwise an error with code and message is returned with status code 404
{
"Id": "string",
"Name": "string",
"Quantity": 1,
"OnQuantityTrigger": true,
"TimeInterval": 1.0,
"OnTimeIntervalTrigger": true,
"MaxHeight": 2.0,
"OnMaxHeightTrigger": true,
"ConfigurationName": "string",
"MediaType": "string",
}
POST
/api/AutomaticNestingProfiles/Create
Create a automaticNestingProfile
Model Request Example
{
"Name": "string",
"Quantity": 1, //ignored when OnQuantityTrigger is false
"OnQuantityTrigger": true,
"TimeInterval": 1, //ignored when OnTimeIntervalTrigger is false
"OnTimeIntervalTrigger": true,
"MaxHeight": 2, //ignored when OnTimeIntervalTrigger is false
"OnMaxHeightTrigger": true,
"ConfigurationName": "string",
"SelectedMediaTypes": [
"string"
]
}
Response Example
If the operation is successful a automaticNestingProfile will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409
PUT
/api/AutomaticNestingProfiles/Update
Update a automaticNestingProfile
Request Example
/api/AutomaticNestingProfiles/Update?id=automaticNestingProfileId&name=automaticNestingProfileName
Use id parameter to identify the automaticNestingProfile to update by id or
Use name parameter to identify the automaticNestingProfile to update by name
Model Request Example
All fields are updated
{
"Name": "string",
"Quantity": 1, //ignored when OnQuantityTrigger is false
"OnQuantityTrigger": true,
"TimeInterval": 1, //ignored when OnTimeIntervalTrigger is false
"OnTimeIntervalTrigger": true,
"MaxHeight": 2, //ignored when OnTimeIntervalTrigger is false
"OnMaxHeightTrigger": true,
"ConfigurationName": "string",
"SelectedMediaTypes": [
"string"
]
}
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/AutomaticNestingProfiles/Delete
Delete a automaticNestingProfile
Request Example
/api/AutomaticNestingProfiles/Delete?id=automaticNestingProfileId&name=automaticNestingProfileName
Use id parameter to identify the automaticNestingProfile to update by id or
Use name parameter to identify the automaticNestingProfile 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