Skip to content

Update Page

PATCH/pages/:id

Update an existing page. Only the attributes you include are changed.

Attributes

AttributeTypeDescription
namestring
slugstring
statusstring
orderstring
settingsstring
prefillBlocksstring
eventIdstring
workspaceIdstring

Fields marked with * are required.

Request

js
import Confetti from 'confetti'

const confetti = new Confetti({ apiKey: 'your-key' })

const page = await confetti.pages.update(26074, {
  name: 'example',
})
sh
curl -X PATCH "https://api.confetti.events/pages/26074" \
  -H "Content-Type: application/json" \
  -H "Authorization: apikey your-key" \
  -d '{
  "data": {
    "type": "page",
    "id": "26074",
    "attributes": {
      "name": "example"
    }
  }
}'