Functions
Create and update functions with complete curl request examples.
Collection path: events/{event_id}/functions
| Input | Type | POST | PATCH | Notes |
|---|---|---|---|---|
name |
Scalar string | Required by the model | Optional | Event-specific function name. |
position |
Scalar number or null |
Optional | Optional | Display order. |
POST a function
curl --request POST \
--url "${BRELLA_API_BASE_URL}/api/core/organizations/${BRELLA_ORGANIZATION_ID}/events/${BRELLA_EVENT_ID}/functions" \
--header "Accept: application/vnd.brella.v4+json" \
--header "Brella-API-Access-Token: ${BRELLA_API_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "Founder",
"position": 10
}'
The response type is function. Useful write-response fields are name, position, and updated_at.
PATCH a function
curl --request PATCH \
--url "${BRELLA_API_BASE_URL}/api/core/organizations/${BRELLA_ORGANIZATION_ID}/events/${BRELLA_EVENT_ID}/functions/61" \
--header "Accept: application/vnd.brella.v4+json" \
--header "Brella-API-Access-Token: ${BRELLA_API_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "Founder or co-founder",
"position": 5
}'