Skip to main content

REST API: Allow unarchiving a habit

Hi,

I manage my habits through the REST API v2, and archiving a habit via the API works well. But I could not find any way to unarchive a habit through the API — the OpenAPI reference lists no such endpoint, and support confirmed it doesn't exist yet.

Right now, restoring an archived habit means going back to the web app, which breaks an otherwise API-only workflow. This matters when a habit was archived by mistake, or when a seasonal habit comes back into use.

It would help to have an endpoint such as POST /habits/{habitId}/unarchive (or a way to set the habit back to active), so archiving and unarchiving are symmetrical through the API.

For context, my account has 304 habits including archived ones, with 81 currently active.

Thank you,

Daisuke

1 comment

Comments1

  • Minh Thư

    Team•

    Nov 20

    Hi Daisuke, thank you for the great feature request!

    I can completely understand why having a dedicated endpoint to unarchive habits is necessary to maintain a seamless, API-only workflow. I will definitely forward your suggestion to our development team for their consideration so we can look into making archiving and unarchiving symmetrical in the API.

    Thanks again for your feedback and for helping us improve Habitify!