Purpose: Add a physical edgeband roll to materialAssist after goods receipt.
Prerequisites: materialAssist license with the Connect interface. The edgeband type exists in materialManager (create it).
Code
using HomagConnect.MaterialAssist.Contracts.Request;
using HomagConnect.MaterialManager.Contracts.Material.Base;
var request = new MaterialAssistRequestEdgebandEntity
{
Id = "43",
EdgebandCode = "ABS_White_1mm",
ManagementType = ManagementType.Single,
Quantity = 1,
Length = 50,
CurrentThickness = 1.0
};
var edgebandEntity = await client.Edgebands.CreateEdgebandEntity(request);
POST https://connect.homag.cloud/api/materialAssist/edgebandEntities
Authorization: Basic <base64(SubscriptionId:Berechtigungsschlüssel)>
Content-Type: application/json
{
"id": "43",
"edgebandCode": "ABS_White_1mm",
"managementType": "Single",
"quantity": 1,
"length": 50,
"currentThickness": 1.0
}
Contracts used
| Field | Required | Constraint | Typical value |
|---|---|---|---|
Id |
yes | max. 50 characters, unique | Roll barcode, 43 |
EdgebandCode |
yes | existing edgeband type | ABS_White_1mm |
ManagementType |
yes | Single, Stack, GoodsInStock |
Single |
Quantity |
yes | 1–9999 | 1 |
Length |
yes | 0–2000 | 50 |
CurrentThickness |
no | 0.01–99.99 | 1.0 |
Comments |
no | max. 300 characters |
Contract: MaterialAssistRequestEdgebandEntity. See the Data model and ManagementType, quantities, and units.
Common errors
| Error | Cause | Solution |
|---|---|---|
| 400 / 404 | EdgebandCode does not exist |
Create the edgeband type first |
| 400 / 409 | Id is already assigned |
Use a unique ID or barcode |
Used in: Edgeband management (#4)
