I've noticed that when I pull up
https://my.jss.com:8443/api/#!/computerinvitations/findComputerInvitations_get
I get a giant list of invitation codes. Some of them never expire.
<invitation_type>DEFAULT</invitation_type>
<expiration_date>Unlimited</expiration_date>
<expiration_date_utc>Unlimited</expiration_date_utc>
<expiration_date_epoch>Unlimited</expiration_date_epoch>
I figured out that I can use the API to delete them.
curl -sfku <user>:<pass> "https://my.jss.com:8443/JSSResource/computerinvitations/id/<id to delete> -X DELETE"
I understand that most of these codes expire after a single use but some are from quickadd packages created years ago. The binary in the package may be outdated but the code will still work. In my mind I think it would be good to delete all old quickadd inivations when you create a new quickadd package.
I guess I'm wondering what your thoughts are on this and if there is any other way to handle these stale invitations.
