Update Product Groups
You can update or edit the group yourself as needed with the following required information
API Endpoint
| URL |
{base url}/api/Product/UpdateProductGroup |
| Method |
POST |
| Authorization |
Bearer Token |
| Content-Type |
application/json |
Request Headers
| Parameter |
Type |
Required |
Description |
| APIKEY |
string |
true |
System key code |
Request Parameters
| Parameter |
Type |
Required |
Description |
| Id |
string |
true |
Product group id |
| Active |
string |
true |
set active/inactive group |
| Code |
string |
true |
update product group code |
| Name |
string |
true |
update product group name |
| Tag |
string |
false |
update product group tag |
Request JSON Example
{
"Id": "F37E0712-9BD2-4394-AB24-69AA6A570758",
"Active": true,
"Code": "GLS-240011111",
"Name": "แว่นกันแดดผู้ชาย",
"Tag": "#glass"
}
Response Parameters
| Parameter |
Type |
Description |
| Id |
integer |
Error status (0 = no error) |
| Success |
boolean |
Status of the request |
| Message |
string |
Response message |
| RequestId |
string |
Reference ID for the request |
| Size |
integer |
Number of records update |
| Data |
object |
Normally the return value is null always |
Response JSON Example
{
"Id": 0,
"Success": true,
"Message": "SUCCESS",
"RequestId": "6AF2A622-2A4B-430C-8F9A-A74CDECB16FC",
"Size": 1,
"Data": null
}