ExtendCardExpiryRequest

This is how to request a card expiry extension.

ExtendCardExpiryRequest Properties

ExtendCardExpiryRequest

Field Type Inherited from Description
Disable Boolean ExtendCardExpiryRequest Gets or sets the Disable value
ExpiredAfter DateTime ExtendCardExpiryRequest Gets or sets the ExpiredAfter value
ExpiresBefore DateTime ExtendCardExpiryRequest Gets or sets the ExpiresBefore value
NewExpiryDate DateTime ExtendCardExpiryRequest Gets or sets the NewExpiryDate value
PersonSearchQuery String ExtendCardExpiryRequest Gets or sets the PersonSearchQuery value
TrialRun Boolean ExtendCardExpiryRequest Gets or sets the TrialRun value

JSON Structure of ExtendCardExpiryRequest

{
   "Disable"	:	"Boolean",
   "ExpiredAfter"	:	"DateTime",
   "ExpiresBefore"	:	"DateTime",
   "NewExpiryDate"	:	"DateTime",
   "PersonSearchQuery"	:	"String",
   "TrialRun"	:	"Boolean"
}

Extend Card Expiry

Example in C#

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

Example in CURL



            curl -X POST \
               https://keepapi.feenicshosting.com/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
               }'