POST api/Setting/UpdateMaterial
Request Information
URI Parameters
None.
Body Parameters
Material| Name | Description | Type | Additional information |
|---|---|---|---|
| material_id | globally unique identifier |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| image_id | globally unique identifier |
None. |
|
| image | string |
None. |
|
| referenceType | integer |
None. |
|
| createBy | globally unique identifier |
None. |
|
| createDate | date |
None. |
|
| isActive | boolean |
None. |
|
| updateBy | globally unique identifier |
None. |
|
| updateDate | date |
None. |
|
| business_id | globally unique identifier |
None. |
|
| inventory | Collection of Inventory |
None. |
|
| compositions | Collection of MaterialComposition |
None. |
Request Formats
application/json, text/json
Sample:
{
"material_id": "43862d22-6458-4205-9a7b-abb0c7a89665",
"name": "sample string 2",
"description": "sample string 3",
"image_id": "d9affe83-fbf7-460a-83fe-a907b0bb27a2",
"image": "sample string 5",
"referenceType": 6,
"createBy": "ceae6cef-5c38-4d06-a486-368eb4a3ac37",
"createDate": "1794153407000",
"isActive": true,
"updateBy": "34866ee3-232e-419e-b615-1838c0b2ae61",
"updateDate": "1794153407000",
"business_id": "9e217f8f-8f88-4f4f-bcc7-0572eb378b90",
"inventory": [
{
"inventory_id": "785f304c-2570-4881-89d0-9e5942bf9841",
"reference_id": "4928b57a-882a-4e8f-9ace-95dc8a4c57e2",
"referenceType": 3,
"name": "sample string 4",
"qty": 5.1,
"unit_id": 6,
"unit": "sample string 7",
"in_out": 8,
"description": "sample string 9",
"createBy": "41cafe78-5dd3-47df-b6de-e94f1795ab76",
"createDate": "1794153407000",
"isActive": true,
"updateBy": "58bca51a-252c-46be-8e77-1e614674ffae",
"updateDate": "1794153407000",
"business_id": "3bfd44c5-f85f-4cac-b6e4-5faaa0e93b7f",
"datetime": "1794153407000"
},
{
"inventory_id": "785f304c-2570-4881-89d0-9e5942bf9841",
"reference_id": "4928b57a-882a-4e8f-9ace-95dc8a4c57e2",
"referenceType": 3,
"name": "sample string 4",
"qty": 5.1,
"unit_id": 6,
"unit": "sample string 7",
"in_out": 8,
"description": "sample string 9",
"createBy": "41cafe78-5dd3-47df-b6de-e94f1795ab76",
"createDate": "1794153407000",
"isActive": true,
"updateBy": "58bca51a-252c-46be-8e77-1e614674ffae",
"updateDate": "1794153407000",
"business_id": "3bfd44c5-f85f-4cac-b6e4-5faaa0e93b7f",
"datetime": "1794153407000"
}
],
"compositions": [
{
"id": "729d09a1-87af-493b-8ab4-f003e58250d0",
"material_id": "e80616ef-cbb7-4e56-82ec-3463a83b265e",
"composition_id": 3,
"efficiency": 4.1
},
{
"id": "729d09a1-87af-493b-8ab4-f003e58250d0",
"material_id": "e80616ef-cbb7-4e56-82ec-3463a83b265e",
"composition_id": 3,
"efficiency": 4.1
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| status | boolean |
None. |
|
| error | string |
None. |
|
| data | Object |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.