Workorder data model

Updated:

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNounique identifier for the work order
created_atstring (date-time)Nowhen the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
building_idstringNopointer to the Property Building
unit_idstringNopointer to the Property Unit
resident_idstringNopointer to the Property Resident
user_idstringNopointer to the HR Employee assigned to the work order (reference to HrisEmployee)
namestringNoshort summary of the work order
descriptionstringNofree-text description of the issue
categorystringNothe maintenance category, eg. Plumbing or HVAC
statusenumNothe work order status Values: OPEN, IN_PROGRESS, ON_HOLD, COMPLETED, CANCELLED, OTHER
priorityenumNothe work order priority Values: LOW, MEDIUM, HIGH, EMERGENCY
is_entry_permittedbooleanNowhether staff may enter the unit without the resident
vendor_namestringNothe contractor assigned to the work order
due_atstring (date-time)Nowhen the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
scheduled_atstring (date-time)Nowhen the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
completed_atstring (date-time)Nowhen the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
currencystringNoISO 4217 currency code
cost_amountnumberNothe cost of the work
metadataPropertyMetadata[]Nocustom field values
metadata[].idstringNothe custom field identifier
metadata[].slugstringNothe custom field key
metadata[].valueobjectNothe custom field value
metadata[].namespacestringNothe scope or origin of the custom field
metadata[].formatenumNothe data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL
metadata[].extra_dataobjectNoadditional data about the custom field

TypeScript

TypeScript
export type PropertyWorkorder = {
	id?: string; // unique identifier for the work order
	created_at?: string-time; // when the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	building_id?: string; // pointer to the Property Building
	unit_id?: string; // pointer to the Property Unit
	resident_id?: string; // pointer to the Property Resident
	user_id?: string; // pointer to the HR Employee assigned to the work order (reference to HrisEmployee)
	name?: string; // short summary of the work order
	description?: string; // free-text description of the issue
	category?: string; // the maintenance category, eg. Plumbing or HVAC
	status?: 'OPEN' | 'IN_PROGRESS' | 'ON_HOLD' | 'COMPLETED' | 'CANCELLED' | 'OTHER'; // the work order status
	priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'EMERGENCY'; // the work order priority
	is_entry_permitted?: boolean; // whether staff may enter the unit without the resident
	vendor_name?: string; // the contractor assigned to the work order
	due_at?: string-time; // when the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	scheduled_at?: string-time; // when the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	completed_at?: string-time; // when the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	currency?: string; // ISO 4217 currency code
	cost_amount?: number; // the cost of the work
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 

Zod

Zod
import { z } from 'zod';

export const ZodPropertyWorkorder = z.object({
	id: z.string().optional().describe("unique identifier for the work order"),
	created_at: z.string-time().optional().describe("when the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	building_id: z.string().optional().describe("pointer to the Property Building"),
	unit_id: z.string().optional().describe("pointer to the Property Unit"),
	resident_id: z.string().optional().describe("pointer to the Property Resident"),
	user_id: z.string().optional().describe("pointer to the HR Employee assigned to the work order (reference to HrisEmployee)"),
	name: z.string().optional().describe("short summary of the work order"),
	description: z.string().optional().describe("free-text description of the issue"),
	category: z.string().optional().describe("the maintenance category, eg. Plumbing or HVAC"),
	status: z.enum("OPEN", "IN_PROGRESS", "ON_HOLD", "COMPLETED", "CANCELLED", "OTHER").optional().describe("the work order status"),
	priority: z.enum("LOW", "MEDIUM", "HIGH", "EMERGENCY").optional().describe("the work order priority"),
	is_entry_permitted: z.boolean().optional().describe("whether staff may enter the unit without the resident"),
	vendor_name: z.string().optional().describe("the contractor assigned to the work order"),
	due_at: z.string-time().optional().describe("when the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	scheduled_at: z.string-time().optional().describe("when the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	completed_at: z.string-time().optional().describe("when the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	cost_amount: z.number().optional().describe("the cost of the work"),
	metadata: z.array().optional().describe("custom field values"),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class PropertyWorkorderStatus(str, Enum):
	OPEN = 'OPEN'
	IN_PROGRESS = 'IN_PROGRESS'
	ON_HOLD = 'ON_HOLD'
	COMPLETED = 'COMPLETED'
	CANCELLED = 'CANCELLED'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyWorkorderPriority(str, Enum):
	LOW = 'LOW'
	MEDIUM = 'MEDIUM'
	HIGH = 'HIGH'
	EMERGENCY = 'EMERGENCY'

@dataclasses.dataclass
class PropertyWorkorder:
	"""unique identifier for the work order"""
	id: Optional[str]
	"""when the work order was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the work order was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""pointer to the Property Building"""
	building_id: Optional[str]
	"""pointer to the Property Unit"""
	unit_id: Optional[str]
	"""pointer to the Property Resident"""
	resident_id: Optional[str]
	"""pointer to the HR Employee assigned to the work order (reference to HrisEmployee)"""
	user_id: Optional[str]
	"""short summary of the work order"""
	name: Optional[str]
	"""free-text description of the issue"""
	description: Optional[str]
	"""the maintenance category, eg. Plumbing or HVAC"""
	category: Optional[str]
	"""the work order status"""
	status: Optional[PropertyWorkorderStatus]
	"""the work order priority"""
	priority: Optional[PropertyWorkorderPriority]
	"""whether staff may enter the unit without the resident"""
	is_entry_permitted: Optional[bool]
	"""the contractor assigned to the work order"""
	vendor_name: Optional[str]
	"""when the work order is due (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	due_at: Optional[str]
	"""when the work is scheduled (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	scheduled_at: Optional[str]
	"""when the work order was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	completed_at: Optional[str]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the cost of the work"""
	cost_amount: Optional[int]
	"""custom field values"""
	metadata: Optional[PropertyPropertyWorkorderMetadata]
Are we missing anything? Let us know
Was this page helpful?