Statuses
flowchart
not_started e1@--> in_progress
in_progress e2@--> processed
in_progress e3@--> failed
e1@{ animate: true }
e2@{ animate: true }
e3@{ animate: true }
A bulk action represents, well, a bulk action. It is used to perform actions on a large number of objects at once. For example, you can use it to delete a large number of emails, or to unsubscribe a large number of subscribers. The actions within a bulk action are processed serially by Buttondown; this should be considered an ergonomic way to batch API calls across the network rather than a net-new piece of functionality in of itself.
A unique TypeID associated with the object.
The date and time at which the object was first created.
The type of bulk action to perform.
Add notes to multiple subscribers in bulk.
This action requires two additional parameters within metadata: action (which can be either add, set, or remove), and metadata (the value of the metadata which you'd like to either add or remove to the list of subscribers).
Rename multiple metadata fields in bulk. This action requires two additional parameters within metadata: rename_mapping field and an ids field (either a list of specific subscriber IDs for whom you want to rename metadata, or all).
Ban subscribers from your newsletter.
Delete multiple subscribers in bulk.
Gift premium subscriptions to multiple subscribers in bulk.
Remove gifted premium subscriptions from multiple subscribers in bulk.
Reactivate multiple subscribers in bulk.
Restore the status of multiple subscribers. Their exact type will depend on their history with your newsletter, but in general Buttondown will do the 'right' thing (e.g. restoring their premium subscription if they had one.)
Resubscribe multiple unsubscribed subscribers in bulk.
This action requires one additional parameter within metadata: email_id (the ID of the email which you'd like to send).
Unban multiple subscribers in bulk.
Send reminders to multiple subscribers in bulk.
Unsubscribe multiple subscribers in bulk.
Delete multiple uploaded attachments in bulk.
Delete multiple emails in bulk.
Delete multiple uploaded images in bulk.
Update the email types for multiple emails in bulk.
Update the archival modes for multiple emails in bulk.
Update the commenting modes for multiple emails in bulk.
Mark multiple inbox items as read.
Delete multiple inbox items in bulk.
Delete multiple comments in bulk.
Delete multiple surveys in bulk.
Delete multiple survey responses in bulk.
Mark multiple comments as active.
Mark multiple comments as spam.
Replay multiple events in bulk.
Update the status types for multiple surveys in bulk.
Cancel the Stripe subscriptions for multiple subscribers in bulk.
Modify the Stripe subscriptions for multiple subscribers in bulk.
Pause or unpause the Stripe subscriptions for multiple subscribers in bulk.
Parameters for the bulk action. The exact shape depends on type — typically an ids list of object IDs to act on.
The current processing status of the bulk action.
The bulk action has not yet started.
The bulk action is currently being processed.
The bulk action has completed.
The bulk action was unable to be completed. Buttondown is looking into it.
The date and time at which the bulk action was completed.