BioFlow
API Reference

Update a page draft

PATCH /v1/pages/{page_id} — Merge-patch the DRAFT: title, description, theme preset, per-block data patches, and/or full reorder via block_order — everything…

PATCH
/v1/pages/{page_id}

Merge-patch the DRAFT: title, description, theme preset, per-block data patches, and/or full reorder via block_order — everything unmentioned is preserved. Requires expected_updated_at; a stale stamp is refused with 409 stale_snapshot.

Requires scope: pages:write. Plan entitlement: public_api (Creator and Pro).

Authorization

AuthorizationBearer <token>

API key (bf_live_… / bf_test_…) as a Bearer token.

In: header

Path Parameters

page_id*string

Page ID from List pages

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/v1/pages/string" \  -H "Content-Type: application/json" \  -d '{    "expected_updated_at": "string"  }'
{  "id": "string",  "title": "string",  "description": "string",  "slug": "string",  "status": "DRAFT",  "locale": "string",  "public_url": "string",  "theme": {    "label": "string",    "preset_key": "string"  },  "draft": {    "updated_at": "2019-08-24T14:15:22Z",    "block_count": 0,    "blocks": [      {        "id": "string",        "kind": "string",        "enabled": true,        "label": "string"      }    ]  },  "published": {    "is_live": true,    "block_count": 0,    "live_updated_at": "2019-08-24T14:15:22Z"  }}