Light Mode
Bulk Product Actions
POST
/products/actionsLast modified: a month ago
This endpoint allows you update multiple products with various actions.
:::check[]
If only one product is specified, the update will be applied immediately. For multiple products, the updates will be processed through a queue.
:::
Request
Body Params application/json
No schema defined
Example
{
"operations": [
{
"action_name": "duplicate"
},
{
"action_name": "sale-channels",
"value": {
"channels": [
"web",
"app"
]
}
},
{
"action_name": "features",
"value": {
"mahly_category_id": 5670235101,
"categories": [
537348185
],
"brand_id": 959852531,
"tags": [
1982584825
]
}
},
{
"action_name": "notify-quantity",
"value": {
"notify_quantity": 10,
"minimum_notify_quantity": 20,
"subscribers_percentage": 5
}
},
{
"action_name": "pricing",
"value": {
"column": "price",
"formula": "price - (price * amount /100 )",
"amount": 50,
"apply_on": "product"
}
}
],
"filters": {
"select_all": false,
"unselected_ids": [],
"ids": [
1661028235,
388819608
],
"categories": [
48702356,
12857436
],
"brands": [
716569785,
125713981
],
"wholesale": false,
"mahly": "unlinked",
"status": [
"sale"
],
"types": [
"product",
"digital"
]
}
}
Request samples
Responses
Success(200)
Validation Error(422)
unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"operation_id": "9cde43d8-dbac-40f4-8d39-74a9443846b9",
"action_name": "notify-quantity",
"status": "in_progress"
},
{
"operation_id": "9cde43d8-dbba-47cd-98ed-23bb3aeee142",
"action_name": "mahly-category",
"status": "in_progress"
}
]
}
Last modified: a month ago