Create Brand

Create Brand

POST https://sandbox.mnasati.com/v1/brand

This endpoint allows you to create brands.

Headers

NameTypeDescription

Content-Type

string

Application/JSON

Access Token

string

The Access token is given when using the Authorization method.

Request Body

NameTypeDescription

sort

integer

Sort order from 0 to whatever is the last brand number

status

integer

1 = active, 0 = disabled

brand_name_ar

string

Brand name in Arabic.

brand_name

string

Name of the brand in English.

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}

Body

{    
"brand_name":"test brand 11",    
"brand_name_ar":"test brand 11 ar"
}

Examples

import http.client

conn = http.client.HTTPSConnection("sandbox.mnasati.com")

payload = "{\"brand_name\":\"brand demo en test\",\"brand_name_ar\":\"brand demo ar test\",\"status\":1,\"sort\":1}"

headers = {
    'Content-Type': "",
    'Authorization-Jwt': ""
    }

conn.request("POST", "/v1/brand", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

Last updated