Skip to main content
POST
Create a components record

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.

Body

application/json
type
string
required
Required string length: 1 - 100
name
string | null
Maximum string length: 200
color
string | null
Maximum string length: 50
brand
string | null
Maximum string length: 100
diameter
string | null
Maximum string length: 20
size
string | null
Maximum string length: 50
remaining_units
integer
default:0
Required range: x >= 0
low_threshold
integer | null
Required range: x >= 0
location
string | null
Maximum string length: 200

Response

Created

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