Add a service
Adds a service customers can book and the receptionist can offer.
Autorizaciones
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
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.
A unique value, up to 255 characters, that makes retries of this request safe for 24 hours.
255Cuerpo
1 - 160How long an appointment for it lasts, from 1 minute to 24 hours.
1 <= x <= 1440Made from the name when left out, keeping only its Latin letters and digits, so a name without any needs a slug. One another service already uses is a 409.
1 - 120^[a-z0-9]+(?:-[a-z0-9]+)*$1 - 2000Defaults to true.
The staff members who take it. Leave it out, or send [], to let every active staff member take it. Inactive staff don't take bookings, so a service whose staff are all inactive can't be booked.
100Stable identifier (UUID).
Respuesta
Created