Luxor PlatformAPI DocumentationCommanderParts
Bulk update parts
Applies the same category, supplier, and/or threshold change to many parts by id.
Authorization
LuxorAPIKey authorization<token>
Use your API key here.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://example.com/v2/commander/parts/bulk" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "6e0346a3-e54d-40e3-9779-4ba1e707e35b" ] }'{ "updated_count": 12}{ "statusCode": 400, "code": "FST_ERR_VALIDATION", "error": "Bad Request", "message": "body/end_date Required"}{ "statusCode": 403, "code": "7", "error": "Forbidden", "message": "[permission_denied] site_id does not belong to this workspace"}Update part
Updates a part. All fields optional; only supplied fields change. SKU and site are immutable. `custom_fields` is merged. Send only the fields you are changing: unknown keys are rejected with a 400, so a whole part read back from `GET /v2/commander/parts/{part_id}` cannot be posted back verbatim (it carries server-owned fields such as `id`, `sku`, `on_hand` and `created_at`).
Delete part
Soft-deletes (archives) a single catalog part. Returns 204.