Skip to content

saveDonation

Create or update a donation. A model with an id updates that donation; without one, it creates one.

catalog {
saveDonation(
andPublish: Boolean!
asTemplate: Boolean
model: DonationInput!
): Donation
}

Publish the donation once it is saved. Only a draft or lapsed donation can be published. Not with asTemplate.

Save the donation as a template to copy new ones from. Only a draft or a template can be saved as one. False by default.

The donation to save.

A donation to a cause.