Update Category - Venddor API

← Back to API Documentation
PUT {{baseUrl}}/Categories/{category_id}

This endpoint allows you to update an existing product category in the marketplace.

Path Parameters

Parameter Type Description
category_id* string ID of the category to update

Request Headers

Header Value Description
Authorization Basic Auth Base64 encoded username:password combination

Request Body Parameters

Parameter Type Required Description
category* string Yes Updated name of the category
company_id* string Yes Always set to "0" to make the category available to all sellers
status* string Yes Set to "A" for activated or "D" for deactivated

Example Request

{
  "category": "Updated category name",
  "company_id": "0",
  "status": "A"
}

Response

The endpoint returns status information about the updated category.

Example Response

{
  "category_id": "1459",
  "status": "success",
  "message": "Category updated successfully"
}
Important: Updating a category's status to "D" (deactivated) will hide all products assigned to this category until it is reactivated or the products are reassigned to another active category.