Update Page
PATCH
/pages/:idUpdate an existing page. Only the attributes you include are changed.
Attributes
| Attribute | Type | Description |
|---|---|---|
name | string | |
slug | string | |
status | string | |
order | string | |
settings | string | |
prefillBlocks | string | |
eventId | string | |
workspaceId | string |
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"
}
}
}'