> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.robaws.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Creating a work order through the API

# Creating a work order through the API

Imagine you have an external software system that can track time and you want it to create work orders for you.

This request shows how to create a work order with:

- employee commute information
- employee time entries
- extra line items with used articles

```
POST https://app.robaws.com/api/v2/work-orders
{
    "projectId": "1",
    "commuteEntries": [
       {
            "distance": 17,
            "returnDistance": 33,
            "employeeId":"1"
       },
       {
           "distance": 5,
           "returnDistance": 5,
           "employeeId": "2"
       }
    ],
    "timeEntries": [
        {
            "employeeId":"1",
            "articleId":"556",
            "startTime": {
                "hour": 8,
                "minute": 30
            },
            "endTime": {
                "hour": 18,
                "minute": 45
            },
            "breakHours": 1.5
        }
    ],
    "lineItems": [
        {
            "type": "LINE",
            "articleId": "1",
            "quantity": "3",
            "description": "Your custom description"
        }
    ]
}
```