Create Page
POST
/pagesCreate a new page.
Attributes
| Attribute | Type | Description |
|---|---|---|
name * | string | |
slug | string | |
status | string | |
order | number | |
settings | object | |
prefillBlocks | boolean | |
eventId | number | |
workspaceId | number |
Fields marked with * are required.
Request
js
import Confetti from 'confetti'
const confetti = new Confetti({ apiKey: 'your-key' })
const page = await confetti.pages.create({
name: 'example',
})sh
curl -X POST "https://api.confetti.events/pages" \
-H "Content-Type: application/json" \
-H "Authorization: apikey your-key" \
-d '{
"data": {
"type": "page",
"attributes": {
"name": "example"
}
}
}'