Attach a device to a brew or change its settings
Attach a device to a brew so its readings are logged there (brew: the brew), detach it (brew: null), rename it, or set its gravity calibration offset (added to every gravity it sends; -0.05 to +0.05 SG). A device logs to one brew at a time; attaching it moves it (also off a keg) and moved_from names where it was. Send only what changes. Needs the plan feature `device_integrations`. Scope: `brews:write` (or `write`).
Attach a device to a brew so its readings are logged there (brew: the brew), detach it (brew: null), rename it, or set its gravity calibration offset (added to every gravity it sends; -0.05 to +0.05 SG). A device logs to one brew at a time; attaching it moves it (also off a keg) and moved_from names where it was. Send only what changes.
Needs the plan feature device_integrations. Scope: brews:write (or write).
API token in format: bfk_. Each operation lists the token scope it requires (the scopes are listed below).
read: Read everything (all areas)write: Create, change and delete everything (all areas)brews:read: List and view brewsbrews:write: Create, update, delete brews and notesinventory:read: List inventory itemsinventory:write: Create, update, delete inventory itemsequipment:read: List equipment profilesequipment:write: Create, update, delete equipment profilesstyles:read: List style profilesstyles:write: Create, update, delete style profilesprofiles:read: List mash, fermentation, and water profilescustom-fields:read: List custom field definitionscustom-fields:write: Create, update, delete custom field definitionsprofiles:write: Create, update, delete mash, fermentation, and water profilescellar:read: View cellar, packaged stock, tap lists, and labelscellar:write: Manage cellar, packaging, stock, tap lists, and labelssettings:read: View preferences, imports, calculators, and your data exportsettings:write: Change preferences and undo importscommunity:read: View community, feedback, tickets, inbox, and account overviewcommunity:write: Post, vote, and reply in community, feedback, and tickets
In: header
Scope: brews:write
Request Body
application/json
The device: its id or its exact name (e.g. "iSpindel blue"). Case does not matter.
Brew to log to: id, batch number (e.g. "#12") or exact name; null detaches the device.
New name.
1 <= length <= 80Calibration offset in SG, e.g. -0.002 when it reads 2 points high.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://brewforge.sh/api/v1/actions/update_device" \ -H "Content-Type: application/json" \ -d '{ "device": "string" }'{
"device": {
"id": "string",
"name": "string",
"type": "string",
"brew": {
"id": "string",
"name": "string",
"status": "string"
},
"logs_keg": true,
"gravity_offset_sg": 0,
"last_seen_at": "string",
"last_gravity_sg": 0,
"last_temp_c": 0,
"last_battery": 0
},
"changed": [
"string"
],
"moved_from": "string"
}{
"error": {
"code": "string",
"message": "string",
"hint": "string",
"candidates": [
{
"id": "string",
"name": "string"
}
],
"fields": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string",
"candidates": [
{
"id": "string",
"name": "string"
}
],
"fields": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string",
"candidates": [
{
"id": "string",
"name": "string"
}
],
"fields": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string",
"candidates": [
{
"id": "string",
"name": "string"
}
],
"fields": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string",
"candidates": [
{
"id": "string",
"name": "string"
}
],
"fields": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"details": {}
}
}{
"error": {
"code": "string",
"message": "string",
"hint": "string",
"candidates": [
{
"id": "string",
"name": "string"
}
],
"fields": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"details": {}
}
}