---
title: "POST /v1/automation-rules/{rule_id}/preview"
method: POST
path: "/v1/automation-rules/{rule_id}/preview"
tags: ["Automation Rules"]
---

# POST /v1/automation-rules/{rule_id}/preview

`POST /v1/automation-rules/{rule_id}/preview`

## Request

- Base URL: `https://api.yardstick.team`
- URL: `https://api.yardstick.team/v1/automation-rules/{rule_id}/preview`
- Auth: HTTP bearer

POST /v1/automation-rules/{rule_id}/preview

**Required scopes:** `automation_rules:read`, `applications:read`, `people:read` Assigned interviewer changes (assignment_changed) and Update scheduling (update_scheduling) belong to job rules targeting candidate interviews. The action accepts template_key (default updated_scheduling_invitation), delivery (auto_send or auto_draft_review, default review), and task: { assignee: recruiter or { user_id }, title, due_in?: { value, unit: days or hours } }. Timing is always immediate and delivery_mode mirrors action.delivery. Enabled Update scheduling rules cannot overlap steps on the same job. The recommended starter begins disabled. Saved-rule preview makes no changes and uses the current interview state; manually shared links without a recorded send cannot be detected.

## Path parameters

- `rule_id` string, required

## Headers

- `Idempotency-Key` string
- `X-Request-Id` string

## Request body

- object
  - `application_id` string, required

## Response `200`

Resolved recipients, sender, rendered email, links and missing prerequisites for this application. Executes no action.

- object

## Other responses

- `400`: Invalid request
- `401`: Authentication failure
- `403`: Permission denied (scope or feature flag)
- `404`: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
- `409`: Conflict (e.g. idempotency key reuse with different body)
- `429`: Rate limited
- `500`: Internal error

---

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