Create Category
Create category
POST
https://sandbox.mnasati.com/v1/category
This endpoint allows you to create a store category.
Headers
Name
Type
Description
Content-Type
string
Application/JSON
Access Token
string
The JWT Key generated using Authorization method.
Request Body
Name
Type
Description
category_name_ar
string
Category name in Arabic
category_name
string
Category name in English
{ "name": "Cake's name", "recipe": "Cake's recipe name", "cake": "Binary cake"}
Body
{
"category_name":"new categ",
"category_name_ar":"new categ ar"
}
Examples
import http.client
conn = http.client.HTTPSConnection("sandbox.mnasati.com")
payload = "{\"category_name\":\"testcatg en 1\",\"category_name_ar\":\"testcatg ar 2\"}"
headers = {
'Content-Type': "",
'Authorization-Jwt': ""
}
conn.request("POST", "/v1/category", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Last updated
Was this helpful?