ExtendExpiredCardsAsync

Extends the expiration date on active cards that have expired within a certain date period. Returns ()

Overview of ExtendExpiredCardsAsync goes here.

Name Description
folder The folder containing the expired cards to extend
expiredFrom The start date of cards that have expired on or from this date
expiryEnd The end date of cards that have expired on or before this date
newExpiresOn The new expiry date for the expired cards
trialRun Boolean flag to run the card and update the records or not. If set to false, it can be used to first validate the number of records to be updated

Extend Expired Cards Async

Example in C#

// Returns: ExtendCardExpiryResponse
var extendCardExpiryResponse = await client.ExtendExpiredCardsAsync(FolderInfo folder, DateTime expiredFrom, DateTime expiryEnd, DateTime newExpiresOn, Boolean trialRun);

Example in CURL



            curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/extendcards \
               -H 'Authorization: Bearer  TOKEN_GOES_HERE'\
               -H 'Content-Type: application/json' \
               -d '{
                   "$type":"Feenics.Keep.WebApi.Model.ExtendCardExpiryRequest, Feenics.Keep.WebApi.Model",
                   "NewExpiryDate":"2022-01-30T15:47:54.5915518Z",
                   "ExpiredOnDate":"2019-01-30T15:47:54.5915518Z",
                   "ExpiredFromDate":"2019-01-30T15:47:54.5915518Z",
                   "ExpiredEndDate":"2019-01-30T15:47:54.5915518Z",
                   "TrialRun":false
               }'