Skip to main content
POST
/
printers
/
{id}
/
light
Toggle chamber light
curl --request POST \
  --url https://api.autoprintfarm.com/public/v1/printers/{id}/light \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "state": true
}'
{
  "success": true,
  "data": {
    "printer_id": "<string>",
    "state": true,
    "command_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Body

application/json
state
required

Response

Dispatched

success
enum<boolean>
required
Available options:
true
data
object
required