Update Category

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

Request Body

NameTypeDescription

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"
}'

Last updated