API suggestion: Adding images to collections

Posts: 1 · Views: 26
  • 41365

    Hi,

    I don't know if this has been suggested before. My account was recently deleted, including all my collections, so I tried to copy all collections and their images from my alt account to my now-restored account (thank you again)!

    I tried to speed up the process using this site's API. With it, I can easily get all collections and their image URLs. However, I still have to open the URLs with my restored account and manually add them to my collections.

    I think it would be pretty cool if we could also use the API to add images to our collections. Something like:

    POST https://wallhaven.cc/api/v1/collections/<USERNAME>/<COLECTION_ID>

    with the Image IDs passed in the request body to be added to the targeted collection.

    I think this would make it much easier to manage and transfer collections, especially in situations like mine.

    What do you think about this idea?

Message