XentrDeveloper Docs
API ReferenceMachines

Bulk-create machines (per-row validation, partial success). org_admin is scoped to their own factory by the factory guard; staff may target any.

POST
/api/factories/{factoryId}/machines/bulk
AuthorizationBearer <token>

In: header

Path Parameters

factoryId*string

Factory slug

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://api.xentr.ai/api/factories/string/machines/bulk" \  -H "Content-Type: application/json" \  -d '{    "machines": [      {        "code": "CNC-001",        "name": "CNC Lathe #1"      }    ]  }'
Empty