Skip to main content

Update Business Category (v1)

Update a business category.

Method & Path

PATCH /v1/admin/business-categories/:categoryId

Description

Updates an existing business category. At least one field must be provided.

Authentication

Required: Admin authentication with businesses.manage permission.

Path Parameters

ParameterTypeRequiredDescription
categoryIdstringYesThe category ID

Request Body

{
"name": {
"en": "Updated Name"
},
"status": "inactive"
}

Response 200 OK

{
"category": {
"id": "507f1f77bcf86cd799439011",
"name": {
"en": "Updated Name"
},
"status": "inactive"
}
}

Common Errors

  • 401 Unauthorized: Missing or invalid admin authentication token
  • 403 Forbidden: Insufficient permissions
  • 404 Not Found: Category not found
  • 400 Bad Request: Invalid request body
  • 500 Internal Server Error: Server error