---
title: "Get rule information"
method: GET
path: "/sites/{site_id}/rules/{rule_id}"
tags: ["Rules"]
---

# Get rule information

`GET /sites/{site_id}/rules/{rule_id}`

## Request

- Base URL: `https://api.sitehive.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sitehive.co/sites/{site_id}/rules/{rule_id}`
- Auth: HTTP bearer

Returns information about a specific rule identified by its `rule_id`

## Path parameters

- `site_id` string, required
- `rule_id` string, required

## Response `200`

Represents a rule that can be applied to a monitoring point to check for exceedances or events.

- Def7: Represents a rule that can be applied to a monitoring point to check for exceedances or events.
  - `id` string, required: Unique identifier for the rule.
  - `name` string, required: The name or title of the rule.
  - `aspect` string, required: The aspect of the rule, e.g., 'Noise'.
  - `startDate` string, date-time, required: ISO 8601 UTC timestamp indicating when the rule became active.
  - `endDate` string, date-time, required: ISO 8601 UTC timestamp indicating when the rule ended or was deactivated. Null if still active.

## Other responses

- `401`: Returned when a request attempts to access a protected resource without providing authentication credentials.
- `403`: Returned when an authenticated request is denied due to insufficient permissions or access rights.
- `404`: Returned when a requested resource does not exist or cannot be located.

---

[API](https://skmtc.dev/sitehive/apis/sitehive-public-api.md) - [All operations](https://skmtc.dev/sitehive/apis/sitehive-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sitehive/apis/sitehive-public-api/revisions/a547c1378f9b?raw)
