List work order categories and areas
The categories and areas your account uses on work orders.
GET https://cotlet.dev/api/v1/resman/work-order-options
read
Returns the work order categories with their ids and the list of areas. Both are defined by your account, so the names differ per company. create_work_order and update_work_order take the category id from here.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/resman/work-order-options \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("resman", "list_work_order_options") const result = await cotlet.call('resman', 'list_work_order_options'); cotlet call resman list_work_order_options Example response
{
"categories": [
{
"category_id": "1bb554a6-0b21-4690-83f2-b5650dadcf5e",
"name": "Plumbing"
},
{
"category_id": "22ae160b-a717-4c04-ad19-5f71280c23af",
"name": "Carpet"
}
],
"areas": [
"Bedroom 1",
"Bathroom 1",
"Kitchen",
"Hallway"
]
}