List every ruleset attached to a campaign.
The service returns the naked array (no { data } envelope on this endpoint) so the fetcher forwards it verbatim.
{ data }
FetchCampaignRulesetsParams.
Promise resolving to the campaign's rulesets.
Error when donationTrainApiUrl isn't configured, or when the response is non-2xx.
donationTrainApiUrl
const rulesets = await fetchCampaignRulesets({ campaignID: "abc" }); Copy
const rulesets = await fetchCampaignRulesets({ campaignID: "abc" });
FetchCampaignRulesetsParams
List every ruleset attached to a campaign.
The service returns the naked array (no
{ data }envelope on this endpoint) so the fetcher forwards it verbatim.