# Retrieve a release rule

`GET https://api.cademi.com.br/api/v3/products/{product_id}/access-schedules/{access_schedule_id}/rules/{release_rule_id}`

Operation ID: `products.access_schedules.rules.get` · API v3

Retrieves the release rule of a single node. Release rule IDs have the format `rul_<level>_<node>`.

Nodes without their own rule also return a result, with `explicit` set to `false` and `effective` containing the inherited rule.

Required permissions: `access_schedules.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `access_schedule_id` | path | string | yes |  |
| `release_rule_id` | path | string | yes |  |

## Responses

### 200

Returns the release rule of the node, either its own or the inherited one.

Body: `data`: ReleaseRule.

Fields of ReleaseRule:

| Field | Type | Required | Description |
|---|---|---|---|
| `effective` | object | yes |  |
| `explicit` | boolean | yes |  |
| `id` | string | yes |  |
| `level` | string, one of `product`, `section`, `lesson` | yes |  |
| `object` | string, one of `release_rule` | yes |  |
| `params` | object | no | Rule parameters. The shape depends on type: {days}, {date}, {exam_id}, {percent}, or empty. |
| `target_id` | string | yes | Public ID of the product, module, or lesson, depending on level. |
| `type` | string or null, one of `free`, `hidden`, `coming_soon`, `days_after_start`, `date`, `exam`, `percentage` | no | Rule type defined on the node, or null when the node has no rule of its own (explicit is false). |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The access schedule or node was not found for this product or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
