How to archive or unarchive a TinyURL using TinyURL API?
It is possible to archive or unarchive TinyURLs on your account using PATCH /archive
endpoint.
All API requests need an authentication token so the first step is to create one. For this particular request, the token must have API permission for “Archive TinyURL”. Please refer to “How to create or modify an API token with specific permissions?” if you want guidance on how to create API token with specific permissions
Once authenticated, all you need with the PATCH /archive endpoint is a Request Body that contains a domain and alias as input variables so a link can be archived or unarchived.

If all goes well, you should get a successful server response with Code 200.
