BioFlow
API Reference

Remove a block

DELETE /v1/pages/{page_id}/blocks/{block_id} — Delete one block from the page DRAFT, preserving everything else. Removing the last remaining block is refused…

DELETE
/v1/pages/{page_id}/blocks/{block_id}

Delete one block from the page DRAFT, preserving everything else. Removing the last remaining block is refused. Requires expected_updated_at (query parameter).

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
Length1 <= length
block_id*string

Block ID from the page's draft.blocks

Length1 <= length

Query Parameters

expected_updated_at*string

Concurrency stamp: the draft.updated_at you last read. A mismatch is refused with 409 stale_snapshot — re-read the page and retry.

Length1 <= length

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://example.com/v1/pages/string/blocks/string?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"  }}