/locations/{locationId}/lines:
name- Line name (max 30 characters)color- Line color. One of:VIOLET,LAVENDER,MARSHMALLOW,TEAL,MINT,CORAL,YELLOW,ROSE,INDIGO,BLUE
disabled- Whether the line starts disabled (default:false)translations- Name translations for multi-language support (see below)appointmentSettings- Appointment configuration (see below)
Translations
You can provide name translations for multi-language support:languageCode(string, required) - Language code (e.g. “fr”, “es”, “de”)name(string, optional) - Translated line name (max 30 characters)
Appointment Settings
You can enable appointments and set a default duration:enabled(boolean, required) - Whether appointments are enabled for this lineduration(integer, required) - Default appointment duration in minutes. Allowed values:15,30,45,60,90,120,180
Error Responses
| Status | Description | Example |
|---|---|---|
| 400 | Name is blank | {"code": "parameter_invalid_blank", "message": "...", "param": "name"} |
| 400 | Name too long (>30 chars) | {"code": "parameter_invalid_size", "message": "...", "param": "name"} |
| 400 | Invalid color name | {"code": "parameter_invalid", "message": "...", "param": "color"} |
| 400 | Invalid appointment duration | {"code": "parameter_invalid", "message": "...", "param": "appointmentSettings.duration"} |
| 400 | Language code is blank | {"code": "parameter_invalid_blank", "message": "...", "param": "translations[0].languageCode"} |
| 400 | Translation name is blank | {"code": "parameter_invalid", "message": "...", "param": "translations[0].name"} |
| 400 | Translation name too long (>30 chars) | {"code": "parameter_invalid_size", "message": "...", "param": "translations[0].name"} |
| 409 | Line with same name already exists | Conflict error |