Bulk Product Actions
POST
/products/actionsThis 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
Product's action name signifying the action to perform based on the filters.
An array that will hold information based on the action type.
Whether ot not to select all products
Exclude IDs from selections
List of product IDs that you wish to apply the actions on. List of products IDs can be found here.
Filter using the categories that you wish to update product in.
Filter using brand ID(s) that you with to update products in. List of brands IDs can be found here.
Filter using product status.
Filter using product type
{
"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
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
Product operation unique identification.
Bulk operation name.
Operation status.
{
"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"
}
]
}