---
title: "Run labor model for start and end timestamp"
method: POST
path: "/v2/labor-model/location/{locationId}/run"
tags: ["Labor Model Rule"]
---

# Run labor model for start and end timestamp

`POST /v2/labor-model/location/{locationId}/run`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/v2/labor-model/location/{locationId}/run`
- Auth: API key in header `OAuth`

Run labor model for start and end timestamp.

## Path parameters

- `locationId` integer, required

## Request body

- LaborModelRunRequest
  - `start` string, int64
  - `end` string, int64
  - `locationId` integer

## Response `200`

A successful response.

- LaborModelRunResponse
  - `success` boolean
  - `data` ModelLaborModelResult
    - `hours` integer
    - `minutes` integer
    - `start` string, int64
    - `end` string, int64
    - `staffByDay` ModelStaffByDay[]
      - `date` string, date-time
      - `staffByArea` ModelStaffByArea[]
        - `area` integer
        - `hours` integer
        - `minutes` integer

---

[API](https://skmtc.dev/deputy/apis/deputy-v2-api.md) - [All operations](https://skmtc.dev/deputy/apis/deputy-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deputy/apis/deputy-v2-api/revisions/78f0278f4608?raw)
