tempalias icon indicating copy to clipboard operation
tempalias copied to clipboard

Provide a way to delete aliases

Open pilif opened this issue 14 years ago • 0 comments

While the server already creates and stores an update key with each alias, this is currently not used. The REST-API doesn't expose any way of deleting an alias once it has been created. This is not so bad as it's easy to just not use an erroneously generated alias, but still, it might be of use.

To delete an alias,

DELETE /aliases/<id>

and in the body

{updatekey: <the key you got when you created the alias>}

or DELETE /aliases/<id>?updatekey=...

I'm undecided. Having a request body for DELETE seems unclean, but the key isn't quite a query parameter either.

pilif avatar May 27 '10 19:05 pilif