MNASATI - API Docs
  • Introduction
  • Authentication
  • Limitation
  • Pagination
  • SSL Settings
  • API Methods
    • Authorization
    • Branches
    • Brands List
      • Delete Brand
      • Update Brand
      • Create Brand
    • List Categories
      • Create Category
      • Update Category
    • Countries
      • Cities
    • Customer List
      • Create customer
    • Order List
      • Update Order Status
      • Order Status List
      • Order Status History
    • Payment Methods
    • Product List
      • Product Update
      • Create Product
      • Delete Product
      • Update Product Status
    • Taxes List
    • Vouchers
Powered by GitBook
On this page

Was this helpful?

  1. API Methods
  2. List Categories

Update Category

PUT https://sandbox.mnasati.com/categories

Request Body

Name
Type
Description

category_id*

Int

Category ID Number

category_name*

String

Category Name English

category_name_ar*

String

Category Name Arabic

{
  "status": true,
  "message": "Category updated successfully!"
}

Examples

curl --location --request PUT 'https://sandbox.mnasati.com/v1/categories' \
--header 'Authorization-jwt: Jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2ZW5kb3JfaWQiOiIzIiwidXNlcl9pZCI6IjMzIiwidXNlcl90eXBlIjoidmVuZG9yIiwiZW1haWwiOiJxYTFAdWlndGMuY29tIiwiaWF0IjoxNjMzNTUzMjMzLCJleHAiOjE2Mzg3MzcyMzN9.tMjJ-tTcuvJUhM1zUR2zKC0uR2dSPOA_lmJemm8Gx8Q' \
--data-raw '{
  "category_id":510,
  "category_name":"new categ en",
  "category_name_ar":"new categ arr"
}'

PreviousCreate CategoryNextCountries

Last updated 3 years ago

Was this helpful?