PATCH
/
api
/
stations
/
{id}
Update a station
curl --request PATCH \
  --url http://localhost:3000/api/stations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "templateId": "<string>",
  "isLaminateStation": true,
  "notes": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "name": "<string>",
    "templateId": "<string>",
    "colorId": "sky",
    "status": "offline",
    "isLaminateStation": false,
    "notes": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Resource ID

Body

application/json
name
string
Minimum string length: 1
templateId
string
Minimum string length: 1
colorId
enum<string>
Available options:
sky,
blue,
violet,
pink,
red,
orange,
yellow,
green,
teal,
slate
status
enum<string>
Available options:
online,
offline,
maintenance
isLaminateStation
boolean

Mark as lamination station (laminate action; one sheet survives as the product QR)

notes
string

Response

Station updated

success
boolean
Example:

true

message
string
data
object