---
title: "Update post SEO"
method: PATCH
path: "/wp-json/ocf/v1/posts/{postId}/seo"
tags: ["Site Editing — WordPress"]
---

# Update post SEO

`PATCH /wp-json/ocf/v1/posts/{postId}/seo`

## Request

- Base URL: `https://your-site.com`
- URL: `https://your-site.com/wp-json/ocf/v1/posts/{postId}/seo`
- Auth: HTTP basic

Updates SEO title, meta description, canonical URL, and noindex overrides independently from visible OCF content.

## Path parameters

- `postId` integer, required

## Request body

- SeoUpdateRequest
  - `title` string
  - `description` string
  - `canonical` string, uri
  - `noindex` boolean

## Response `200`

SEO overrides saved

- object

## Other responses

- `400`: Invalid or missing request data
- `401`: Invalid WordPress username or application password
- `404`: Resource not found or not owned by the authenticated account

---

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