Skip to content

Commit 8ce89d1

Browse files
authored
Add disable_rsvp_form field to authenticated API endpoints for events (#194)
* Auth API: add disable_rsvp_form to event update * disable_rsvp_form included in API responses * update example: disable_rsvp_form will be false in initial create response
1 parent 55bee14 commit 8ce89d1

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

source/includes/authenticated_api/_events.md.erb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ The authenticated REST API endpoints for events only deal with events created in
7575
"twitter_share_title": "Deliver the Petition to the Wizard",
7676
"web_share_api_share_message": "Check out this event in the Emerald City",
7777
"whatsapp_share_message": "I'm attending this event to deliver the petition. Join me!",
78-
"share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?"
78+
"share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?",
79+
"disable_rsvp_form": false
7980
},
8081
...
8182
],
@@ -162,7 +163,8 @@ The response includes all the same data as the single-event endpoint for each ev
162163
"twitter_share_title": "Deliver the Petition to the Wizard",
163164
"web_share_api_share_message": "Check out this event in the Emerald City",
164165
"whatsapp_share_message": "I'm attending this event to deliver the petition. Join me!",
165-
"share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?"
166+
"share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?",
167+
"disable_rsvp_form": false
166168
}
167169
}
168170
```
@@ -293,7 +295,8 @@ the event `slug` is `chapter-meeting-1`.
293295
"twitter_share_title": null,
294296
"web_share_api_share_message": null,
295297
"whatsapp_share_message": null,
296-
"share_by_email_body": null
298+
"share_by_email_body": null,
299+
"disable_rsvp_form": false
297300
}
298301
}
299302
```
@@ -336,6 +339,7 @@ Field | Type | Description
336339
bluesky_share_message | String | Custom message used when sharing the event on Bluesky
337340
campaigner_contactable | Boolean | Whether members of the public can contact the event host via the public event page
338341
description | String | Description of the event
342+
disable_rsvp_form | Boolean | Prevents new RSVPs via the event page, by replacing the RSVP form with a message that RSVPs are closed
339343
event_host_name_override | String | Name to display for the event host on the event page. Set to `null` to use the name from the event host's user account.
340344
extra_location_info | String | Additional non-address information about the event's location, e.g. "7th floor" or "Park in the back parking lot"
341345
facebook_share_description | String | Custom description used when sharing the event on Facebook

0 commit comments

Comments
 (0)