put
https://api.everee.com/integration/v1/partner/companies//api-keys//expiration
Schedule an API key to stop working.
Use this endpoint to retire a company API key. It stops working in expireInHours hours, from 0 to 24; with 0 it stops now. The response shows the key with its expiresAt.
A key that already has an expiry scheduled can't be given another. Cancel the first, then set the new one.
Errors
| Status | Meaning |
|---|---|
400 | The key already has an expiry scheduled. |
401 | The API key is missing, malformed or expired. |
404 | No company with this ID belongs to your partner account, or the company has no key with this ID. |
412 | Custom API integrations aren't enabled for this company. |
422 | expireInHours is missing, or isn't from 0 to 24. |
Part of Company API keys. Authenticate with your partner API key, as for every endpoint in this section: see Authentication.