# Here is a curl example
curl \
-X POST "http://localhost:8888/api/BOM/SaveBomChanges" \
-H "Authorization: {token}" \
-H "Content-Type: application/json" \
-d '{
"object_id": 123,
"record_id": 123,
"config_id":123,
"version_index":1,
"view_name":"test",
"list_items":[{
"Name":"test",
"Value":"test",
"CustomProperties":[{
"Id":1,
"Name":"test",
"Value":"test",
"TypeId":1,
"AllowMultipleItems":false,
"IsReference":false,
"IsMapped":false
}]
}],
}'
This method allows you to save BOM items, but you can only change columns for which you have the necessary permissions.
To save items in BOM, you need to make a POST call to the following url:
:
http://localhost:8888/api/BOM/SaveBomChanges
Result example :
[
{
"Success": "boolean",
"Message": "string",
"Data": object,
"CustomAction": Dictionary<object, object> ,
"CustomAttributes":Dictionary<object, object>
}
]
| Field | Parameter Type | Type | Description |
|---|---|---|---|
| object_id | body | long | Object Id. |
| record_id | body | long | Record Id. |
| config_id | body | long | Configuration Id. You can get from another method (http://localhost:8888/api/BOM/Variants). |
| version_index | body | integer | Version Index. You can get from another method (http://localhost:8888/api/BOM/Versions). |
| view_name | body | string | View Name. You can get from another method (http://localhost:8888/api/BOM/Views). |
| list_items | body | List<BatchEditData> |
BatchEditData. Is an class with properties
Name (configInstanceId): string Value (config_instance_id): string CustomProperties: List<BatchEditObjectsData> BatchEditObjectsData. Is an class with properties Id: long Name: string Value: string TypeId: integer AllowMultipleItems: boolean IsReference: boolean IsMapped: boolean |
| Authorization | header | string | Add Authorization header token |