Update Product Status

Update Product Status

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

This endpoint allows you to update the status of a product.

Headers

NameTypeDescription

Authentication

string

The Authentication token is to track down who is emptying our stocks.

Request Body

NameTypeDescription

product_status

integer

Status the product will update to.

product_id

integer

To update a product ID.

{
   "status":true,
   "message":"Product status updated successfully."
}

Examples

import http.client

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

payload = "{\"product_id\":3190,\"product_status\":1}"

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

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

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

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

Last updated