v1API ReferenceSimple Work Orders

Create work orders

Create one or many work orders. The body is a JSON array, even for a single record. Creation is idempotent by name: names are trimmed and de-duplicated, a work order that already exists is returned as-is, and one that was deleted is restored rather than duplicated.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

[index: integer]?

Response Body

application/json

application/json

Try it live
POST
/v1/simple-work-orders

This endpoint requires authentication — paste a token in the Authorization section below.

curl -X POST "https://example.com/v1/simple-work-orders" \  -H "Content-Type: application/json" \  -d '[    {      "name": "WO-2024-001"    }  ]'
[  {    "id": "36f7b519-d93e-4ec8-8245-7f4b8c123456",    "company": {      "id": 1,      "name": "Company 1"    },    "name": "WO-2024-001",    "createdAt": "2024-01-01T00:00:00.000Z",    "updatedAt": "2024-01-01T00:00:00.000Z"  }]