Update Product
curl --request POST \
--url https://app.fliqr.ai/api/products/{product_id} \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"active": false,
"stock": 500,
"price": 40
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: false, stock: 500, price: 40})
};
fetch('https://app.fliqr.ai/api/products/{product_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/products/{product_id}"
payload = {
"active": False,
"stock": 500,
"price": 40
}
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"updated": true
}Ecommerce
Update product
Update product.
POST
/
products
/
{product_id}
Update Product
curl --request POST \
--url https://app.fliqr.ai/api/products/{product_id} \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"active": false,
"stock": 500,
"price": 40
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: false, stock: 500, price: 40})
};
fetch('https://app.fliqr.ai/api/products/{product_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/products/{product_id}"
payload = {
"active": False,
"stock": 500,
"price": 40
}
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"updated": true
}Authorizations
API access token from your Fliqr AI dashboard (Settings → API). Send it in the X-ACCESS-TOKEN header on every request.
Path Parameters
Was this page helpful?
⌘I