Saltar al contenido principal
PATCH
Update a service

Autorizaciones

Authorization
string
header
requerido

An API key from Settings > API keys (lsk_...), which acts on its own business, or a platform key from the PLATFORM_API_KEYS setting (lsp_...), which onboards and manages businesses. Scopes: business:read, business:write, calls:read, contacts:read, contacts:write, appointments:read, appointments:write, messages:read, knowledge:read, knowledge:write, webhooks:manage, billing:manage, phone_numbers:manage, team:manage, businesses:create, users:create. Only platform keys can hold businesses:create and users:create.

Encabezados

LobbyStack-Business
string<uuid>

The business a platform key acts on. Required with a platform key. A per-business key may leave it out; if it sends one, it must be the key's own business.

Parámetros de ruta

service_id
string<uuid>
requerido

The service id.

Cuerpo

application/json
name
string
Required string length: 1 - 160
slug
string

One another service already uses is a 409.

Required string length: 1 - 120
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
description
string | null

null removes it.

Required string length: 1 - 2000
duration_minutes
integer
Rango requerido: 1 <= x <= 1440
active
boolean

false stops new bookings for it without deleting it.

staff_ids
string<uuid>[]

Replaces who takes it. [] lets every active staff member take it. Inactive staff don't take bookings, so a service whose staff are all inactive can't be booked.

Maximum array length: 100

Stable identifier (UUID).

Respuesta

OK

data
object
requerido