Update a page
Changes the fields sent.
apiKeyAuthorizationBearer <token>A project API key: pk_... (public, read published content) or sk_... (secret, the actions it was given).
projectId*stringpageId*stringlocale?stringLanguage tag of the row to read (fr, fr-CA). Defaults to the site's language.
version?stringSecret keys: working reads a live post with its pending changes and their version (0 before there are any), which a write to them sends in If-Match. live (the default) is the post itself.
"live""working"live?stringEditors (post:publish): write a live post's live version instead of its pending changes.
"true""false"if-match?stringThe version this write was made against ("7", from ETag). Without it the last write wins.
application/json- body
title?stringbody?|A Tiptap JSON document (@tintage/document).
featureImage?unknown{ file: 'file_...', alt }, or null.
slug?stringauthorIds?array<string>Author ids (author_...) in byline order.
publishedAt?stringEditors: the publish date of a published post.
seo?og?twitter?canonicalUrl?string|nullnoindex?booleanparent?|The parent page's id (post_...), or null for the top level.
template?|The template's name from the theme's tintage.json, or null for the default.
[key: string]?unknownThe page, or its pending changes with ?version=working.
application/json- response
id*stringlocale*string^[a-z]{2,3}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$length <= 16alternates*array<>slug*string^[a-z0-9]+(?:-[a-z0-9]+)*$1 <= length <= 200status*string"draft""in_review""scheduled""published"title*stringbody*|string|nullfeatureImage*|nullauthors*array<>seo*og*twitter*canonicalUrl*string|nullnoindex*booleanfields*publishedAt*|date-timecreatedAt*stringdate-timeupdatedAt*stringdate-timeversion*integer1 <= valueparent*string|nulltemplate*string|nullcurl -X PATCH 'https://api.tintage.com/v1/cms/projects/string/pages/string' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "id": "string", "locale": "string", "alternates": [ { "locale": "string", "slug": "string" } ], "slug": "string", "status": "draft", "title": "string", "body": { "property1": null, "property2": null }, "featureImage": { "file": "string", "version": 1, "url": "string", "alt": "string", "crop": { "x": 0, "y": 0, "w": 1, "h": 1 }, "width": 1, "height": 1, "thumbhash": "string", "color": "string", "textColor": "string", "tone": "light", "transparent": true, "kind": "photo", "focalPoint": { "x": 0, "y": 0 } }, "authors": [ { "id": "string", "slug": "string", "name": "string", "bio": "string", "image": { "file": "string", "version": 1, "url": "string", "alt": "string", "crop": { "x": 0, "y": 0, "w": 1, "h": 1 }, "width": 1, "height": 1, "thumbhash": "string", "color": "string", "textColor": "string", "tone": "light", "transparent": true, "kind": "photo", "focalPoint": { "x": 0, "y": 0 } }, "website": "string", "social": { "x": "string", "bluesky": "string", "mastodon": "string", "linkedin": "string", "instagram": "string", "github": "string", "youtube": "string" }, "count": { "posts": 0 } } ], "seo": { "title": null, "description": null }, "og": { "title": "string", "description": "string", "image": { "file": "string", "version": 1, "url": "string", "alt": "string", "crop": { "x": 0, "y": 0, "w": 1, "h": 1 }, "width": 1, "height": 1, "thumbhash": "string", "color": "string", "textColor": "string", "tone": "light", "transparent": true, "kind": "photo", "focalPoint": { "x": 0, "y": 0 } } }, "twitter": { "card": "summary", "title": "string", "description": "string", "image": { "file": "string", "version": 1, "url": "string", "alt": "string", "crop": { "x": 0, "y": 0, "w": 1, "h": 1 }, "width": 1, "height": 1, "thumbhash": "string", "color": "string", "textColor": "string", "tone": "light", "transparent": true, "kind": "photo", "focalPoint": { "x": 0, "y": 0 } } }, "canonicalUrl": "string", "noindex": true, "fields": { "property1": null, "property2": null }, "publishedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "version": 1, "parent": "string", "template": "string"}