marioneil | Posts: 105

expire a package

0 votes
Hi Is there a REST call that can make a package expire on demand. I am aware of expiry dates field , but I need a REST call that I can make when I need to based on some business logic. Regards Mario

Approved Answer
Duo_Liang | Posts: 3776

Reply to: expire a package

2 votes
Hi Mario, If you want to manually make a package expired depending on your own business logic, you can set the status of package to "EXPIRED" by following REST call and payload:
HTTP Request
PUT /api/packages/{packageId}

HTTP Headers
Accept: application/json
Content-Type: application/json
Authorization: Basic api_key

Request Payload
{
   "status": "EXPIRED"
}
Hope this reply could help you!

marioneil | Posts: 105

Reply to: expire a package

0 votes
Thank you for your prompt response

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off