Maintenance

Report a maintenance issue

Files an issue against a unit, the way the Report issue sheet does, with an audit entry naming who filed it. It is recorded and nothing else: no contractor is contacted and nothing is sent to anyone.

post/api/v1/maintenance

Request

  • Base URL: http://localhost:5180
  • URL: http://localhost:5180/api/v1/maintenance
  • Auth: API key in cookie better-auth.session_token

Request body

unitIdstring required

The unit the problem is in.

titlestring required
descriptionstring
category'heating' | 'hot_water' | 'plumbing_leak' | 'drainage' | 'electrical' | 'appliance' | 'damp_mould' | 'pest' | 'window_door' | 'lock_key' | 'roof' | 'structural' | 'common_areas' | 'garden' | 'noise' | 'security' | 'safety_alarm' | 'other'
urgency'emergency' | 'urgent' | 'routine' | 'cosmetic'

Response

Filed.

okunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.