This is how to request a card expiry extension.
ExtendCardExpiryRequest
Field | Type | Inherited from | Description |
---|---|---|---|
Disable | Boolean | ExtendCardExpiryRequest | Gets or sets the Disable value |
ExpiredAfter | DateTime | ExtendCardExpiryRequest | Gets or sets the ExpiredAfter value |
ExpiredEndDate | DateTime | ExtendCardExpiryRequest | Gets or sets the ExpiredEndDate value |
ExpiredFromDate | DateTime | ExtendCardExpiryRequest | Gets or sets the ExpiredFromDate 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 |
{
"Disable" : "Boolean",
"ExpiredAfter" : "DateTime",
"ExpiredEndDate" : "DateTime",
"ExpiredFromDate" : "DateTime",
"ExpiresBefore" : "DateTime",
"NewExpiryDate" : "DateTime",
"PersonSearchQuery" : "String",
"TrialRun" : "Boolean"
}
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://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
}'