Expiration date

Is it possible to set or update the expiration date of a product key using an api ?