---
title: "Get all Labor Model Rules"
method: GET
path: "/v2/labor-model/location/{locationId}/rules"
tags: ["Labor Model Rule"]
---

# Get all Labor Model Rules

`GET /v2/labor-model/location/{locationId}/rules`

## Request

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

Get all Labor Model Rules.

## Path parameters

- `locationId` integer, required

## Response `200`

A successful response.

- LaborModelRuleGetResponse
  - `success` boolean
  - `data` ModelLaborModelRuleResponse[]
    - `id` string
    - `area` integer
    - `metric` string
    - `metricValueType` string
    - `metricAmount` number, double
    - `laborAmount` integer
    - `minLabor` integer
    - `maxLabor` integer
    - `coverage` integer
    - `steps` ModelStep[]
      - `from` number, double
      - `to` number, double
      - `laborAmount` integer
    - `maxMetricAmount` number, double
    - `timeframe` integer
    - `useBuffers` boolean
    - `buffers` ModelBuffer
      - `open` ModelBufferDetail
        - `hours` integer
        - `minutes` integer
        - `direction` string
      - `close` ModelBufferDetail
        - `hours` integer
        - `minutes` integer
        - `direction` string
    - `subMetric` string
    - `task` ModelTaskResponse
      - `taskId` integer
      - `taskGroupType` string
      - `taskGroupName` string
      - `start` string
      - `end` string
      - `repeat` ModelTaskRepeat
        - `frequency` string
        - `days` string[]
      - `estimatedHours` integer
      - `estimatedMinutes` 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)
