You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/includes/authenticated_api/_events.md.erb
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,8 @@ The authenticated REST API endpoints for events only deal with events created in
74
74
"twitter_share_message": "Attending this event to deliver our petition",
75
75
"twitter_share_title": "Deliver the Petition to the Wizard",
76
76
"web_share_api_share_message": "Check out this event in the Emerald City",
77
-
"whatsapp_share_message": "I'm attending this event to deliver the petition. Join me!"
77
+
"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
79
},
79
80
...
80
81
],
@@ -160,7 +161,8 @@ The response includes all the same data as the single-event endpoint for each ev
160
161
"twitter_share_message": "Attending this event to deliver our petition",
161
162
"twitter_share_title": "Deliver the Petition to the Wizard",
162
163
"web_share_api_share_message": "Check out this event in the Emerald City",
163
-
"whatsapp_share_message": "I'm attending this event to deliver the petition. Join me!"
164
+
"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?"
164
166
}
165
167
}
166
168
```
@@ -290,7 +292,8 @@ the event `slug` is `chapter-meeting-1`.
290
292
"twitter_share_message": null,
291
293
"twitter_share_title": null,
292
294
"web_share_api_share_message": null,
293
-
"whatsapp_share_message": null
295
+
"whatsapp_share_message": null,
296
+
"share_by_email_body": null
294
297
}
295
298
}
296
299
```
@@ -346,6 +349,7 @@ max_attendees_count | Integer | Limit on how many people, besides the host, may
346
349
meta_description | String | Custom meta description for the event page (used for SEO and social media previews)
347
350
meta_title | String | Custom meta title for the event page (used for SEO and social media previews)
348
351
redirect_to | String | If set, visitors to the event page will be redirected to this URL
352
+
share_by_email_body | String | Custom message pre-filled in the email body when supporters click the "Share by Email" button. Supports Liquid templating. Set to `null` to use the organisation's default.
349
353
sharing_disabled | Boolean | Turns off the social sharing prompts for the event
350
354
title | String | Event title
351
355
twitter_share_description | String | Custom description used when sharing the event on Twitter/X
Copy file name to clipboardExpand all lines: source/includes/authenticated_api/_petitions.md.erb
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,8 @@ Petition are pieces of content that can be signed by members.
164
164
"twitter_share_message": "Sign this petition to end tea taxes",
165
165
"twitter_share_title": "No Taxes on Tea",
166
166
"web_share_api_share_message": "Check out this petition about tea taxes",
167
-
"whatsapp_share_message": "I just signed a petition about tea taxes. Join me!"
167
+
"whatsapp_share_message": "I just signed a petition about tea taxes. Join me!",
168
+
"share_by_email_body": "I just signed this petition and thought you might be interested. Will you join me?"
168
169
}
169
170
}
170
171
```
@@ -345,7 +346,8 @@ Get a paginated list of all petitions, including ones that are unlaunched or oth
345
346
"twitter_share_message": null,
346
347
"twitter_share_title": null,
347
348
"web_share_api_share_message": null,
348
-
"whatsapp_share_message": null
349
+
"whatsapp_share_message": null,
350
+
"share_by_email_body": null
349
351
}
350
352
}
351
353
```
@@ -439,6 +441,7 @@ meta_title | String | Custom meta title for the petition page (used for SEO and
439
441
partnerships | Array | List of partnerships this petition should be associated with, formatted like `[{"slug": "foo"}, {"slug": "bar"}]`. If the petition was associated with any partnerships that are not included in the list, it will be removed from those partnerships.
440
442
petition_creator_name_override | String | Name to display for the petition creator on the petition page. Set to `null` to use the name from the petition creator's user account.
441
443
redirect_to | String | If set, visitors to the petition page will be redirected to this URL
444
+
share_by_email_body | String | Custom message pre-filled in the email body when supporters click the "Share by Email" button. Supports Liquid templating. Set to `null` to use the organisation's default.
442
445
show_progress_bar | Boolean | Whether to show the signature progress bar on the petition page
443
446
signature_count_add_amount | Integer | If set, the displayed signature total on the petition page will be this much higher than the actual number of signatures recorded by the platform. This is usually used to reflect signatures that were gathered elsewhere and cannot be added to the platform, or signers whose data has been anonymized. A negative number can be specified to subtract from the total.
0 commit comments