Skip to main content
PATCH
/
pages
/
{id_or_slug}
Update a page (merge semantics on meta)
curl --request PATCH \
  --url https://api.neuraldraft.io/v1/pages/{id_or_slug} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "slug": "<string>",
  "title": "<string>",
  "type": "landing",
  "is_homepage": true,
  "is_active": true,
  "exclude_from_search": true,
  "meta_title": "<string>",
  "meta_description": "<string>",
  "og_title": "<string>",
  "og_description": "<string>",
  "og_image": "<string>",
  "canonical_url": "<string>"
}
'
{
  "data": {
    "id": 42,
    "slug": "about",
    "title": "About us",
    "type": "landing",
    "is_homepage": false,
    "is_active": true,
    "exclude_from_search": false,
    "meta_title": "About — Acme",
    "meta_description": "<string>",
    "og_title": "<string>",
    "og_description": "<string>",
    "og_image": "<string>",
    "canonical_url": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Path Parameters

id_or_slug
integer
required

Body

application/json

Patch shape — every field is optional. Pass null on a meta field to clear it. Untouched fields are preserved (merge semantics).

slug
string
Pattern: ^[a-z0-9\-/]+$
title
string
type
enum<string>
Available options:
landing,
blog_list,
blog_post,
legal
is_homepage
boolean
is_active
boolean
meta_title
string | null
meta_description
string | null
og_title
string | null
og_description
string | null
og_image
string<uri> | null
canonical_url
string<uri> | null

Response

OK

data
object