Skip to main content
POST
/
locations
/
{id}
/
lines
Create a line
curl --request POST \
  --url https://api.qminder.com/v1/locations/{id}/lines \
  --header 'Content-Type: application/json' \
  --header 'X-Qminder-API-Version: <x-qminder-api-version>' \
  --header 'X-Qminder-REST-API-Key: <api-key>' \
  --data '
{
  "name": "Customer Support",
  "color": "TEAL",
  "translations": [
    {
      "languageCode": "fr",
      "name": "Service client"
    }
  ],
  "appointmentSettings": {
    "enabled": true,
    "duration": 30
  }
}
'
{
  "id": "12345"
}

Authorizations

X-Qminder-REST-API-Key
string
header
default:yourbusinessapikey
required

Headers

X-Qminder-API-Version
enum<string>
default:2020-09-01
required

API version. Must be set to 2020-09-01.

Available options:
2020-09-01

Path Parameters

id
integer<int32>
default:123
required

ID of a Location

Body

application/json
name
string
required

Line name (max 30 characters).

Maximum string length: 30
color
enum<string>
required

Line color.

Available options:
VIOLET,
LAVENDER,
MARSHMALLOW,
TEAL,
MINT,
CORAL,
YELLOW,
ROSE,
INDIGO,
BLUE
disabled
boolean

Whether the line starts disabled. Default: false.

translations
object[]

Name translations for multi-language support.

appointmentSettings
object

Appointment configuration for this line.

Response

Line created successfully

id
string

The ID of the created line.

Example:

"12345"