Create a latch machine

POST /company/shops/@id/latches/locations/@location_id/machines

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int Shop ID
location_id Int Latch location ID

Body

Pass the following properties via application/json or form encoding in the body of the request.

Field Type Description
identifier String Unique identifier for the specific latch machine
description String A String value
temperature_type String String enumarion of 'COOLED', 'NOTCOOLED'
reservation_type String String. Should be equal to 'HOURS_UPFRONT'
username String? Optional. Nullable. A String value
password String? Optional. Nullable. A String value

Example request 1

POST /company/shops/18/latches/locations/10/machines HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 174
{
    "identifier": "...",
    "description": "...",
    "temperature_type": "COOLED",
    "reservation_type": "HOURS_UPFRONT",
    "username": "...",
    "password": "..."
}

Response

Field Type Description
identifier String Unique identifier for the specific latch machine
description String A String value
temperature_type String String enumarion of 'COOLED', 'NOTCOOLED'
reservation_type String String. Should be equal to 'HOURS_UPFRONT'
id Int An integer value
location_id Int An integer value
username String? Optional. Nullable. A String value
password String? Optional. Nullable. A String value

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 211

{
    "identifier": "...",
    "description": "...",
    "temperature_type": "COOLED",
    "reservation_type": "HOURS_UPFRONT",
    "id": 14,
    "location_id": 13,
    "username": "...",
    "password": "..."
}
1.9.0 stable