# Change service Method to change the service Endpoint: PATCH /v1/services/{location_id}/{service_id} Version: 1.0.1 Security: bearer, user ## Path parameters: - `location_id` (number, required) location ID - `service_id` (number, required) Service ID ## Header parameters: - `Accept` (string, required) e.g. application/vnd.api.v2+json Example: "application/vnd.api.v2+json" - `Content-Type` (string, required) application/json - `Authorization` (string, required) Bearer partner_token, User user_token ## Request fields (application/json): - `title` (string, required) Service name Example: "Men's haircut" - `category_id` (number, required) ID service category Example: 83167 - `price_min` (number, required) Minimum cost of the service Example: 1300 - `price_max` (number, required) Maximum cost of the service Example: 1300 - `duration` (number, required) Service duration, default value is 3600 Example: 3600 - `booking_title` (string, required) Service name for appointment Example: "Men's haircut" - `is_multi` (boolean, required) false - Appointment, true - Event - `tax_variant` (number, required) Bill ID Example: 1 - `vat_id` (number, required) VAT ID Example: 3 - `is_need_limit_date` (boolean, required) The service is available for a limited time Example: true - `seance_search_start` (number, required) Start of period is the appointment available, in seconds Example: 36000 - `seance_search_finish` (number, required) End of period is the appointment available, in seconds Example: 84600 - `step` (number, required) Display interval of slots, in seconds Example: 300 - `seance_search_step` (number, required) Search interval of slots, in seconds Example: 900 - `technical_break_duration` (any) Technical break duration in seconds. - If not provided, defaults to null - null = use location default (Settings → Appointment Log → Technical Breaks) - Must be in multiples of 300 (5-minute intervals) - Maximum value is 3600 (1 hour) - `discount` (number) Service discount - `comment` (string) Comment on the service - `weight` (number) Service weight (used to sort services when displayed) Example: 6 - `active` (number) 1 - available for online booking, 0 - not available Example: 1 - `api_id` (string) External Service ID Example: "00000000042" - `staff` (array) List of team members providing the service and session duration Example: [{"id":5905,"seance_length":2700},{"id":5907,"seance_length":3600},{"id":8973,"seance_length":3600},{"id":13616,"seance_length":3600},{"id":16681,"seance_length":3600},{"id":1796,"seance_length":3600},{"id":34006,"seance_length":3600}] - `staff.id` (number) team member ID - `staff.seance_length` (number) Service duration (multiple of 15 minutes) ## Response 200 fields (application/json): - `success` (boolean) Execution success status (true) - `data` (object) - `data.title` (string) Service name - `data.booking_title` (string) Service name for appointment - `data.category_id` (number) ID service category - `data.price_min` (number) Minimum cost of the service - `data.price_max` (number) Maximum cost of the service - `data.duration` (number) Service duration, default value is 3600 - `data.technical_break_duration` (any) Technical break duration in seconds. - null = use location default - Value in multiples of 300 (5-minute intervals) - `data.discount` (number) Service discount - `data.comment` (string) Comment on the service - `data.is_multi` (boolean) false - Appointment, true - Event - `data.tax_variant` (number) Bill ID - `data.vat_id` (number) VAT ID - `data.is_need_limit_date` (boolean) The service is available for a limited time - `data.seance_search_start` (number) Start of period is the appointment available, in seconds - `data.seance_search_finish` (number) End of period is the appointment available, in seconds - `data.step` (number) Display interval of slots, in seconds - `data.seance_search_step` (number) Search interval of slots, in seconds - `data.weight` (number) Service weight (used to sort services when displayed) - `data.active` (number) 1 - available for online booking, 0 - not available - `data.api_id` (string) External Service ID - `data.staff` (array) List of team members providing the service and session duration - `data.staff.id` (number) team member ID - `data.staff.seance_length` (number) Service duration (multiple of 15 minutes) - `meta` (array) Metadata (empty array) ## Response 401 fields (application/json): - `success` (boolean) Response status. - `data` (object,null) Response data. - `meta` (object) Additional response data. - `meta.message` (string) Error message. Example: "Authentication needed." ## Response 403 fields (application/json): - `success` (boolean) Response status. - `data` (object,null) Response data. - `meta` (object) Additional response data. - `meta.message` (string) Error message. Example: "Access denied." ## Response 404 fields (application/json): - `success` (boolean) Response status. - `data` (object,null) Response data. - `meta` (object,array) Additional response data (empty object or empty array)