Skip to main content
DELETE
/
work-orders
Typescript (SDK)
import { Idalia } from "idalia";

const idalia = new Idalia({
  apiKeyAuth: process.env["IDALIA_API_KEY_AUTH"] ?? "",
});

async function run() {
  const result = await idalia.workOrders.delete();

  console.log(result);
}

run();
[
  {
    "id": "<string>",
    "createdAt": "<string>",
    "workspaceId": "<string>",
    "name": "<string>",
    "typeId": "<string>",
    "updatedAt": "<string>",
    "reference": "<string>",
    "projectId": "<string>",
    "statusId": "<string>",
    "locationId": "<string>",
    "startDate": "<string>",
    "endDate": "<string>",
    "notes": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "externalIds": {}
  }
]

Response

Successful response

id
string
required

The ID

createdAt
string
required

Datetime when the work order was created

workspaceId
string
required

ID of the workspace the work order belongs to

name
string
required

Work order name

typeId
string
required

ID of the work order type

updatedAt
string | null

Datetime the work order was last updated

reference
string | null

Reference code of the work order

projectId
string | null

ID of the project

statusId
string | null

ID of the work order status

locationId
string | null

ID of the work order location

startDate
string | null

Datetime the work order starts

endDate
string | null

Datetime the work order ends

notes
string | null

Notes

createdBy
string | null

ID of the user who created the work order

updatedBy
string | null

ID of the user who last updated the work order

externalIds
object