[Cotlet](https://cotlet.dev/index.md) · [Integrations](https://cotlet.dev/integrations.md) · [How it works](https://cotlet.dev/how-it-works.md) · [Use cases](https://cotlet.dev/use-cases.md) · [Security](https://cotlet.dev/security.md) · [For developers](https://cotlet.dev/for-developers.md) · [For automation agencies](https://cotlet.dev/for-agencies.md) · [Blog](https://cotlet.dev/blog.md) · [API docs](https://cotlet.dev/docs.md) · [Help center](https://cotlet.dev/help.md) · [Changelog](https://cotlet.dev/changelog.md) · [Contact](https://cotlet.dev/contact.md) · [Pricing](https://cotlet.dev/pricing.md) · [Sign up](https://cotlet.dev/signup)

# Create a work order

> Adds a new work order at a unit, building or rentable item. Inputs, cURL, Python and Node.js examples and an example response.

Source: https://cotlet.dev/docs/api/resman/create_work_order

Docs sections: [Get started](https://cotlet.dev/docs.md) · [REST API](https://cotlet.dev/docs/api.md) · [MCP](https://cotlet.dev/docs/mcp.md) · [SDKs & CLI](https://cotlet.dev/docs/sdks.md) · [Integrations](https://cotlet.dev/docs/integrations.md)

Adds a new work order at a unit, building or rentable item.

ResMan API: https://cotlet.dev/docs/api/resman.md

`POST https://cotlet.dev/api/v1/resman/properties/{property_id}/work-orders`

Access: write. Confirm: waits for the user's OK before it runs.

Returns the new work order id and its number. The work order shows in ResMan at once, and a resident who reported it can follow its progress. ResMan sets the due date from your account settings when you give none. By default you confirm each call; you can switch that off for this tool.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `property_id` | string | yes | Property id from list_properties. |
| `description` | string | yes | What is wrong, up to 248 characters. |
| `category_id` | string | yes | Category id from list_work_order_options. |
| `location_type` | string | yes | Unit, Building, Rentable Item or WOIT Account. |
| `location` | string | yes | Unit number, building name or the id of the location. |
| `reported_by` | string | no | Name of the resident who reported it. |
| `assigned_to_person_id` | string | no | Person id of a maintenance employee. |
| `priority` | string | no | Low, Medium or High. |
| `areas` | array | no | Impacted areas from list_work_order_options. |
| `notes` | string | no | Longer notes for the technician. |

## Request

**cURL**

```bash
curl -X POST https://cotlet.dev/api/v1/resman/properties/f308c33b-5865-4f7e-97af-46d35f19eddf/work-orders \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"description":"Kitchen faucet leaks under the sink","category_id":"1bb554a6-0b21-4690-83f2-b5650dadcf5e","location_type":"Unit","location":"201","reported_by":"Dana Whitfield","priority":"Medium"}'
```

**Python**

```python
result = client.call("resman", "create_work_order", {"property_id":"f308c33b-5865-4f7e-97af-46d35f19eddf","description":"Kitchen faucet leaks under the sink","category_id":"1bb554a6-0b21-4690-83f2-b5650dadcf5e","location_type":"Unit","location":"201","reported_by":"Dana Whitfield","priority":"Medium"})
```

**Node.js**

```js
const result = await cotlet.call('resman', 'create_work_order', {"property_id":"f308c33b-5865-4f7e-97af-46d35f19eddf","description":"Kitchen faucet leaks under the sink","category_id":"1bb554a6-0b21-4690-83f2-b5650dadcf5e","location_type":"Unit","location":"201","reported_by":"Dana Whitfield","priority":"Medium"});
```

**CLI**

```bash
cotlet call resman create_work_order --data '{"property_id":"f308c33b-5865-4f7e-97af-46d35f19eddf","description":"Kitchen faucet leaks under the sink","category_id":"1bb554a6-0b21-4690-83f2-b5650dadcf5e","location_type":"Unit","location":"201","reported_by":"Dana Whitfield","priority":"Medium"}'
```

## Example response

```json
{
  "work_order_id": "a68ce6b2-a9ef-4127-bf97-067e9f4a548c",
  "number": 1009,
  "property_id": "f308c33b-5865-4f7e-97af-46d35f19eddf"
}
```

Previous: [List vendors](https://cotlet.dev/docs/api/resman/list_vendors.md)
Next: [Update a work order](https://cotlet.dev/docs/api/resman/update_work_order.md)

---

Give your AI agents your signed-in browser.

**Product:** [Integrations](https://cotlet.dev/integrations.md) · [Use cases](https://cotlet.dev/use-cases.md) · [How it works](https://cotlet.dev/how-it-works.md) · [Pricing](https://cotlet.dev/pricing.md) · [Security](https://cotlet.dev/security.md)

**Resources:** [Blog](https://cotlet.dev/blog.md) · [API docs](https://cotlet.dev/docs.md) · [Help center](https://cotlet.dev/help.md) · [Changelog](https://cotlet.dev/changelog.md) · [GitHub](https://github.com/cotletdev/cotlet)

**Solutions:** [For developers](https://cotlet.dev/for-developers.md) · [For automation agencies](https://cotlet.dev/for-agencies.md)

**Company:** [About](https://cotlet.dev/about.md) · [AI info: company facts](https://cotlet.dev/ai-info.md) · [Contact](https://cotlet.dev/contact.md)

**Legal:** [Terms of service](https://cotlet.dev/terms) · [Privacy policy](https://cotlet.dev/privacy) · [Refund policy](https://cotlet.dev/refunds) · [Acceptable use](https://cotlet.dev/acceptable-use) · [Cookie policy](https://cotlet.dev/cookies) · [DPA](https://cotlet.dev/dpa) · [Subprocessors](https://cotlet.dev/subprocessors)

**Elsewhere:** [Status page](https://status.cotlet.dev) · [Cotlet on GitHub](https://github.com/cotletdev) · [Cotlet on X](https://x.com/cotletdev) · [Cotlet on LinkedIn](https://www.linkedin.com/company/cotletdev) · [Cotlet on Product Hunt](https://www.producthunt.com/products/cotlet) · [Cotlet on Crunchbase](https://www.crunchbase.com/organization/cotlet) · [Cotlet on SaaSHub](https://www.saashub.com/cotlet)

Cotlet.dev is built by Bart Krawczyk and Jake Slugocki, the founders of Take Group sp. z o.o., ul. Wincentego Janasa 4, 40-855 Katowice, Poland. KRS 0000871398, NIP 6342984273, VAT EU: PL6342984273. [About us](https://cotlet.dev/about.md)

Cotlet is an independent service. It is not affiliated with, endorsed by or sponsored by any of the products listed on this site. Product names are trademarks of their respective owners.
