Light Mode
Change Product Status
POST
/products/{product}/statusLast modified: a month ago
This endpoint allows you to update specific product status by passing the product
as a path parameter.
Request
Path Params
product
integer
required
The Product ID. List of Product ID can be found here.
Body Params application/json
status
enum<string>
required
The new status of the prodcut.
Allowed values:
outsalehidden
Example
{
"status": "sale"
}
Request samples
Responses
Created Successfully(201)
Not Found(404)
Error Validation(422)
Created Successfully
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 201,
"success": true,
"data": {
"message": "The entity has been updated successfully",
"code": 201
}
}
Last modified: a month ago