---
title: "Validate an update"
method: POST
path: "/wp-json/ocf/v1/validate"
tags: ["Site Editing — OCF"]
---

# Validate an update

`POST /wp-json/ocf/v1/validate`

## Request

- Base URL: `https://your-site.com`
- URL: `https://your-site.com/wp-json/ocf/v1/validate`
- Auth: HTTP basic

Checks proposed OCF values against the active schema without saving them.

## Request body

- union
  - object
    - `site` object, required: Site-scoped OCF fields.
    - `post` object
      - `post_id` integer, required
      - `fields` object, required
  - object
    - `site` object: Site-scoped OCF fields.
    - `post` object, required
      - `post_id` integer, required
      - `fields` object, required

## Response `200`

Validation result

- object
  - `ok` boolean
  - `errors` string[]

## Other responses

- `400`: Invalid or missing request data
- `401`: Invalid WordPress username or application password

---

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