Skip to main content
POST
/
locations
/
{id}
/
lines
Creating a line
curl --request POST \
  --url https://api.qminder.com/v1/locations/{id}/lines \
  --header 'Content-Type: application/json' \
  --header 'X-Qminder-REST-API-Key: <api-key>' \
  --data '
{
  "name": "New Cool Line",
  "color": "#ffdc00"
}
'
"{\n  \"statusCode\": 200,\n  \"id\": 827\n}"

Authorizations

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

Path Parameters

id
integer<int32>
default:123
required

ID of a Location

Body

name
string
default:New Cool Line

The name of the new line. The maximum length is 30 characters.

color
string
default:#ffdc00

The hexadecimal color code.

Response

200 - application/json

200

statusCode
integer
default:0
Example:

200

id
integer
default:0
Example:

827