Update service
Method PUT
https://my.easyweek.io/api/public/v2/services/{service_uuid}
Description: This endpoint updates a service's core fields. Send the same field set as create. If location_uuids / staffer_uuids are present they are re-synced; if omitted, the existing attachments are left unchanged.
Example Request
curl -i -X PUT \
https://my.easyweek.io/api/public/v2/services/{service_uuid} \
-H 'Authorization: Bearer <YOUR_SECRET>' \
-H 'Workspace: <YOUR_WORKSPACE>'
Request body
{
"name": "Premium cut",
"duration": 45,
"price": 5000,
"price_type": "base",
"live": true,
"live_in_widget": true
}
Path Parameters
- service_uuid (string, required): The unique identifier of the service to update.
Body Parameters
The same fields as Create service. name, duration and price remain required.
Example Response
{
"uuid": "43537759-435b-4871-bf11-e3ace6a4464b",
"name": "Premium cut",
"description": null,
"images": [],
"currency": "EUR",
"price": 5000,
"price_formatted": "€50.00",
"price_type": "base",
"discount": null,
"discount_formatted": null,
"duration": {
"value": 45,
"label": "minutes",
"iso_8601": "PT45M"
},
"is_extra_time": false,
"extra_time": {
"value": 0,
"label": "minutes",
"iso_8601": "PT0S"
},
"is_price_hidden": false,
"is_duration_hidden": false,
"is_top": false,
"starting_at": false,
"live": true,
"live_in_widget": true,
"class": null,
"category": null,
"locations": [
{ "uuid": "123b2980-3506-4f8c-abce-97e1ab653406", "name": "Downtown" }
],
"staffers": [
{ "uuid": "eac5a506-69c0-40c4-8758-85c501d26bcb" }
]
}