Unpublish Product
Unpublish a product in your easycart store.
Request
POST /products/{id}/unpublish
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Yes | Product UUID |
Example Request
curl -X POST "https://cart.easy.tools/api/v1/products/550e8400-e29b-41d4-a716-446655440000/unpublish" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
Success Response (200)
Returns a success message when the product is unpublished.
{
"message": "Product unpublished successfully"
}
Error Responses
Product Not Found (404)
{
"message": "Product with ID 550e8400-e29b-41d4-a716-446655440000 not found"
}