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
curl https://cotlet.dev/api/v1/resman/work-order-options \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("resman", "list_work_order_options")
Node.js
const result = await cotlet.call('resman', 'list_work_order_options');
CLI
cotlet call resman list_work_order_options

Example response

JSON

{
  "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"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.