---
title: "Validate a draft job posting for publish-readiness"
method: POST
path: "/v1/job_postings/{job_posting_id}/actions/validate_draft"
tags: ["Job Postings"]
---

# Validate a draft job posting for publish-readiness

`POST /v1/job_postings/{job_posting_id}/actions/validate_draft`

## Request

- Base URL: `https://api.yardstick.team`
- URL: `https://api.yardstick.team/v1/job_postings/{job_posting_id}/actions/validate_draft`
- Auth: HTTP bearer

Validate a draft job posting for publish-readiness

**Required scopes:** `job_postings:read`

Read-only. Returns blockers describing the fields that would prevent publishing; does not mutate the posting.

**Example (curl):**

```bash
curl -X POST https://api.yardstick.team/v1/job_postings/jp_abc123/actions/validate_draft \
  -H 'Authorization: Bearer ys_sk_live_…'
```

**Example (TypeScript):**

```ts
await fetch(
  "https://api.yardstick.team/v1/job_postings/jp_abc123/actions/validate_draft",
  {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.YS_API_KEY}` },
  },
).then((r) => r.json());
```

## Path parameters

- `job_posting_id` string, required

## Headers

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

## Response `200`

Success

- JobPostingValidationResult: Read-only validate-draft response. blockers is empty iff validation_passed is true.
  - `object` 'validation_result', required
  - `validation_passed` boolean, required
  - `blockers` object[], required
    - `field` string, required
    - `reason` string, required
  - `posting_id` string, required: Display id, e.g. `jp_<base32>`

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