---
title: "Publish an interview plan (preview→bind)"
method: POST
path: "/v1/interview_plans/actions/publish"
tags: ["Interview Plan Builder"]
---

# Publish an interview plan (preview→bind)

`POST /v1/interview_plans/actions/publish`

## Request

- Base URL: `https://api.yardstick.team`
- URL: `https://api.yardstick.team/v1/interview_plans/actions/publish`
- Auth: HTTP bearer

Publish an interview plan (preview→bind)

**Required scopes:** `interview_plans:write`, `interview_plans:publish`

Preview→bind flow. Calling without a `binding` returns HTTP 202 with the approval-required envelope (no mutation); the 200 response shape documented here is returned only on the bind call, which persists a new `interview_plans` row. To execute, re-issue with `binding` echoing the preview's `preview_hash`, `approved_action_key`, `approved_input_hash`, `approved_idempotency_key`, and `resource_version_precondition`. The key captured in `approval.binding.approved_idempotency_key` must match on the bind request.

**Example (curl):**

```bash
curl -X POST https://api.yardstick.team/v1/interview_plans/actions/publish \
  -H 'Authorization: Bearer ys_sk_live_…' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 7c3a…' \
  -d '{"action":"interview_plan.publish","input":{"draft_id":"ipd_…"}}'
```

**Example (TypeScript):**

```ts
await fetch("https://api.yardstick.team/v1/interview_plans/actions/publish", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.YS_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    action: "interview_plan.publish",
    input: { draft_id: "ipd_…" },
  }),
});
```

## Headers

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

## Request body

- object
  - `action` 'interview_plan.publish', required
  - `resource` object
    - `type` 'interview_plan', required
    - `id` string
  - `input` object, required
    - `draft_id` string
    - `expected_draft_version` integer
    - `approval_id` string

## Response `200`

Success

- InterviewPlan
  - `object` 'interview_plan', required
  - `id` string, required
  - `title` string, required
  - `role_name` string, required
  - `additional_info` string, nullable, required
  - `outcomes` unknown
  - `competencies` unknown
  - `job_skills` unknown
  - `interview_sequence` unknown
  - `behavioral_anchors` unknown
  - `is_archived` boolean, required
  - `archived_at` string, nullable, required
  - `archived_by` string, nullable, required
  - `archived_reason` string, nullable, required
  - `group_id` string, nullable, required
  - `created_by` string, nullable, required
  - `current_step` integer, nullable, required
  - `visited_steps` unknown
  - `completed_steps` unknown
  - `version` integer, required
  - `location` string, nullable, required
  - `location_type` string, nullable, required
  - `created_at` string, required
  - `updated_at` string, required

## 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)
