This topic contains 1 reply, has 2 voices, and was last updated by  Duo_Liang 3 weeks, 1 day ago.

  • Author
    Posts
  • Participant
    sumantasaha
    Newbie
    Member since: 20.03.2019
    Number of posts: 3

    Hi,

    I have a requirement to have an expiry date to be set during package creation or package update. I have read through the request and response related to packages and configuration and still could not figure out the procedure or field where the data should be set.
    I have configured the reminder notification using the API /api/packages/{{PACKAGE-ID}}/reminders.
    However, I am curious about there should be a certain max time when the notification will stop and the unsigned package will expire.

    Please help me with probable API (if any) or any other way it can be handled. Also a brief intro about the reminder notification would be helpful.

    Thanks,

    Suman

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 766

    Score

    0

    Hi Suman,

    Expiry setting is a package level attribute named “due”. Below is the expected format you can update a package with:

    PUT /api/packages/{packageId}
    {
    "due": "2019-04-05T10:18:00Z"
    }

    It’s in a format of {yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}Z which is in GMT timezone. So if you want to set the timezone, you’d first convert your target local expiry time to GMT time then format it accordingly. Or simply if you are not sensitive to the exact time, yyyy-MM-dd would work.

    Hope this could help!
    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    • This reply was modified 3 weeks, 1 day ago by  Duo_Liang.

You must be logged in to reply to this topic.