Remove Products from Sales Channel
Run in Apifox
Remove a list of products from a sales channel. This does not delete the product. It only removes the association between the product and the sales channel.
Request Body Params application/json
{
"product_ids" : [
{
"id" : "string"
}
]
}
Request samples curl --location --request DELETE 'https://api.medusa-commerce.com/admin/sales-channels//products/batch' \
--header 'Content-Type: application/json' \
--data-raw '{
"product_ids": [
{
"id": "string"
}
]
}'
Responses application/json Generate Code
{
"sales_channel" : {
"id" : "sc_01G8X9A7ESKAJXG2H0E6F1MW7A" ,
"name" : "Market" ,
"description" : "Multi-vendor market" ,
"is_disabled" : false ,
"created_at" : "2019-08-24T14:15:22Z" ,
"updated_at" : "2019-08-24T14:15:22Z" ,
"deleted_at" : "2019-08-24T14:15:22Z" ,
"metadata" : {
"car" : "white"
} ,
"locations" : [
{
"id" : "scloc_01G8X9A7ESKAJXG2H0E6F1MW7A" ,
"sales_channel_id" : "sc_01G8X9A7ESKAJXG2H0E6F1MW7A" ,
"location_id" : "string" ,
"sales_channel" : { } ,
"created_at" : "2019-08-24T14:15:22Z" ,
"updated_at" : "2019-08-24T14:15:22Z" ,
"deleted_at" : "2019-08-24T14:15:22Z"
}
]
}
}
Modified at 2023-10-08 12:50:29