Add New
Create new product category
HTTP Request
[POST] /api/v6/products/categories
Body Parameters
Parameter | Type | Nullable | Require | Description |
---|---|---|---|---|
category_name | string | Product category name | ||
category_code | string | Category code | ||
description | string | Description | ||
is_default | integer | Default category (1/0) | ||
parent_id | integer | Parent category identifier (default 1) |
Example
HTTP Request
POST api/v6/products/categories HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json
{
"category_name": "TEST PRODUCT API",
"category_code": "TEST_PRODUCT_CODE",
"description": "description",
"is_default": 0,
"parent_id": 1,
}
Status
200 OK
Response
{
"message": "Successfully added",
"id": 4
}