Update a recurring credit
Replaces a recurring credit's amount, frequency, dates and description. Set updatePastCredits to true to also change the credits it has already issued.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease the recurring credit is on. A Snowflake id, sent as a decimal string.
recurringCreditIdstringrequiredThe recurring credit to update. A Snowflake id, sent as a decimal string.
Body
application/json
amountnumberrequiredNew amount, as a decimal of at least 1.
creditFrequencyenum<string>requiredNew frequency.
updatePastCreditsbooleanrequiredWhether to apply the change to credits this has already issued.
startFromstring · dateNew first date.
endstring · dateNew last date. Must be later than startFrom.
descriptionstringNew description. 1 to 1000 characters.
Response
200 · The updated recurring credit.
idstringId of the recurring credit. A Snowflake id, sent as a decimal string.
amountnumberCredit issued each period, as a decimal.
creditFrequencyenum<string>How often it is issued.
descriptionstringWhat the credit is for.
lastCreditstring · dateWhen it last issued a credit.
nextCreditstring · dateWhen it next issues one.
startstring · dateFirst date it issues a credit.
endstring · dateLast date it issues a credit. Absent when it runs indefinitely.
statusenum<string>Whether it is still running, has finished, or is about to issue a credit.