POST /company/shops/@id/latches/locations/@location_id/machines
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
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 |
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 |
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": "..."
}
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 |
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": "..."
}