mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-26 06:35:50 +03:00
[GH-ISSUE #219] (Re-)import aliases for batch update of description and recipient #201
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anonaddy#201
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xanoni on GitHub (Oct 22, 2021).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/219
I noticed that aliases can be exported as CSV in the settings.
Is there a way to delete all current aliases and re-import them from the same CSV format?
This would make it much easier to fix things like the format of the alias descriptions.
I haven't seen an import function, so in absence thereof I guess the best I could do is to request all aliases via
GET api/v1/aliasesand then update each of them individually viaPATCH api/v1/aliases/{id}?I would still encourage implementation of an import function, given many users are probably not super technical.
API:
https://app.anonaddy.com/docs/#get-all-aliases
https://app.anonaddy.com/docs/#update-a-specific-alias
@xanoni commented on GitHub (Oct 22, 2021):
So to be specific, what I'm trying to achieve is to at least update the "Description" fields via some regex /
sedfilter.What would be nice is to then also update the forwarding addresses based on what's in the updated description.
For that, I assume I would use
POST api/v1/alias-recipients(in the absence of the import function that I'm asking about above).API:
https://app.anonaddy.com/docs/#update-recipients-for-a-specific-alias