ExtendCardExpiry

Extends expiration date on active cards based on current expiration date Returns ()

Change the length of time that a card assignment is active.

Name Description
folder The folder containing the cards to extend
expiresBefore Only extend cards that expire before this date
expiresAfter Only extend cards that expire after this date
newExpiresOn The new expiration date to set
trialRun Whether to run in trial mode without making changes
query Optional search query to filter which cards to extend

Extend Card Expiry

Example in C#

// Returns: ExtendCardExpiryResponse
var extendCardExpiryResponse = await client.ExtendCardExpiry(FolderInfo folder, DateTime expiresBefore, DateTime expiresAfter, DateTime newExpiresOn, Boolean trialRun, String query);

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",
                   "ExpiresBefore":"2019-01-30T15:47:54.5915518Z",
                   "ExpiredAfter":"2019-01-30T15:47:54.5915518Z",
                   "TrialRun":false,
                   "PersonSearchQuery":"{'_t':'Person','Tags':{'$ne':'management'}}"
               }'