PUT
/
wp-json
/
latepoint-api
/
v1
/
services
/
{id}

Parameters

ParameterTypeDescription
namestringService name
short_descriptionstringBrief description of the service
descriptionstringDetailed description of the service
durationintegerService duration in minutes
price_minnumberMinimum price for the service
price_maxnumberMaximum price for the service
charge_amountnumberAmount to charge for the service
deposit_amountnumberDeposit amount required
capacity_minintegerMinimum capacity
capacity_maxintegerMaximum capacity
order_numberintegerDisplay order number
selection_image_idintegerImage ID for service selection
statusstringService status: active, disabled
visibilitystringService visibility: visible, hidden
category_idintegerService category ID
All parameters are optional. Only provided fields will be updated.

Example Request

PUT /wp-json/latepoint-api/v1/services/1
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{
  "name": "Updated Service Name",
  "short_description": "Updated description",
  "duration": 90,
  "charge_amount": 150,
  "price_min": 120,
  "price_max": 180
}

Response Example

{
  "success": true,
  "message": "Service updated successfully",
  "data": {
    "id": 1,
    "name": "Updated Service Name",
    "short_description": "Updated description",
    "description": "",
    "duration": 90,
    "price_min": 120,
    "price_max": 180,
    "charge_amount": 150,
    "deposit_amount": 0,
    "capacity_min": 1,
    "capacity_max": 1,
    "order_number": 0,
    "selection_image_id": 0,
    "status": "active",
    "visibility": "visible",
    "category_id": null,
    "created_at": "2025-08-21 09:51:59",
    "updated_at": "2025-08-21 10:15:30"
  }
}