[GH-ISSUE #204] On Save Update existing API #75

Closed
opened 2026-03-16 13:11:56 +03:00 by kerem · 11 comments
Owner

Originally created by @sheecegardezi on GitHub (Oct 22, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/204

Is your feature request related to a problem? Please describe.
As I am developing my API is evolving. When I make a change in api I have to save the API again and delete the old saved version.

Describe the solution you'd like
When I press ctrl+s (or some other shortcut) save action is triggered.
A background logic checks if I had saved this API before or not.

If its already saved:
-promote to update existing API
-update the changes I have made in the existing API
else:
-promote to save a new API
-save the new API

Describe alternatives you've considered
With each change save a new API and delete the old one from the collection.

Originally created by @sheecegardezi on GitHub (Oct 22, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/204 **Is your feature request related to a problem? Please describe.** As I am developing my API is evolving. When I make a change in api I have to save the API again and delete the old saved version. **Describe the solution you'd like** When I press ctrl+s (or some other shortcut) save action is triggered. A background logic checks if I had saved this API before or not. If its already saved: -promote to update existing API -update the changes I have made in the existing API else: -promote to save a new API -save the new API **Describe alternatives you've considered** With each change save a new API and delete the old one from the collection.
kerem 2026-03-16 13:11:56 +03:00
Author
Owner

@liyasthomas commented on GitHub (Oct 22, 2019):

Collections feature has just been shipped! Thanks for the first set of suggestions. Will surely consider adding these feature requests in near future.

In the meantime, you can make use of 'Edit request' feature within collection/folder/ to update API changes. Expecting new feature requests and suggestions as well as bug reports 🙌🏼

<!-- gh-comment-id:545055814 --> @liyasthomas commented on GitHub (Oct 22, 2019): Collections feature has just been shipped! Thanks for the first set of suggestions. Will surely consider adding these feature requests in near future. In the meantime, you can make use of 'Edit request' feature within collection/folder/ to update API changes. Expecting new feature requests and suggestions as well as bug reports 🙌🏼
Author
Owner

@liyasthomas commented on GitHub (Oct 22, 2019):

Btw, if the request is already saved, saving again it will ask you to update the existing API. This is already implemented.
Alternatively, if you want to save the API as a new one, please choose another collection or folder to save it as a new entry. This is also available right now.

Let me know if you're facing any bugs.

<!-- gh-comment-id:545060673 --> @liyasthomas commented on GitHub (Oct 22, 2019): Btw, if the request is already saved, saving again it will ask you to update the existing API. This is already implemented. Alternatively, if you want to save the API as a new one, please choose another collection or folder to save it as a new entry. This is also available right now. Let me know if you're facing any bugs.
Author
Owner

@liyasthomas commented on GitHub (Oct 24, 2019):

#209 fixes this, hence closing.

<!-- gh-comment-id:545931398 --> @liyasthomas commented on GitHub (Oct 24, 2019): #209 fixes this, hence closing.
Author
Owner

@sheecegardezi commented on GitHub (Oct 31, 2019):

step 1: Run a request
step1-run a request

step 2: Create collection and folder
step2-create collection and folder

step 3: save the request as test 1
step3-save the request as test 1

step 4: The request is saved as expected
step4-the request is saved as expected

step 5: Make some changes to API and press save
step5-make some changes to api and press save

step 6 : A new request got saved rather than updating the existing one
step6-a new request got saved rahter then updating the existing one

How do I make changes to an existing request and update it rather than creating a new entry?

<!-- gh-comment-id:548348993 --> @sheecegardezi commented on GitHub (Oct 31, 2019): step 1: Run a request ![step1-run a request](https://user-images.githubusercontent.com/7543039/67946664-eb244600-fc35-11e9-800b-35f8c6d63e02.png) step 2: Create collection and folder ![step2-create collection and folder](https://user-images.githubusercontent.com/7543039/67946663-ea8baf80-fc35-11e9-98e2-fae0bb37069c.png) step 3: save the request as test 1 ![step3-save the request as test 1](https://user-images.githubusercontent.com/7543039/67946662-ea8baf80-fc35-11e9-904a-d49aa1da6642.png) step 4: The request is saved as expected ![step4-the request is saved as expected](https://user-images.githubusercontent.com/7543039/67946661-ea8baf80-fc35-11e9-8525-7f3f831005ad.png) step 5: Make some changes to API and press save ![step5-make some changes to api and press save](https://user-images.githubusercontent.com/7543039/67946666-eb244600-fc35-11e9-9878-098446d33cea.png) step 6 : A new request got saved rather than updating the existing one ![step6-a new request got saved rahter then updating the existing one](https://user-images.githubusercontent.com/7543039/67946665-eb244600-fc35-11e9-9f1f-ac2b0c505a0a.png) How do I make changes to an existing request and update it rather than creating a new entry?
Author
Owner

@liyasthomas commented on GitHub (Oct 31, 2019):

Work around:
step 6:select test request (already saved from step 5) and save.

If there's multiple requests with same name, automatically replacing them results in conflicts. But manually replacing the one we needed will replace the old one with new request label.

<!-- gh-comment-id:548350407 --> @liyasthomas commented on GitHub (Oct 31, 2019): Work around: step 6:select test request (already saved from step 5) and save. If there's multiple requests with same name, automatically replacing them results in conflicts. But manually replacing the one we needed will replace the old one with new request label.
Author
Owner

@sheecegardezi commented on GitHub (Oct 31, 2019):

Thank you, I was selecting the collection the folder but not the request :D
Cheers,

<!-- gh-comment-id:548351216 --> @sheecegardezi commented on GitHub (Oct 31, 2019): Thank you, I was selecting the collection the folder but not the request :D Cheers,
Author
Owner

@cortopy commented on GitHub (Jan 23, 2020):

I'm also experiencing this issue. I just can't make it work so that I update an existing request. I click on the request itself, click on save (nothing happens), refresh and the new details do not appear

<!-- gh-comment-id:577666908 --> @cortopy commented on GitHub (Jan 23, 2020): I'm also experiencing this issue. I just can't make it work so that I update an existing request. I click on the request itself, click on save (nothing happens), refresh and the new details do not appear
Author
Owner

@liyasthomas commented on GitHub (Jan 23, 2020):

@cortopy can you please explain excatly what is not working at your end?

<!-- gh-comment-id:577675892 --> @liyasthomas commented on GitHub (Jan 23, 2020): @cortopy can you please explain excatly what is not working at your end?
Author
Owner

@cortopy commented on GitHub (Jan 23, 2020):

sure! thanks for the prompt reply @liyasthomas

I'm having a hard time updating saved requests. After reading this issue, this is what I've tried:

  1. Save my request
  2. Click on the Saved Request to make sure that's the one I'm editing
  3. Make some changes
  4. Click on the Save button (nothing happens)
  5. I refresh browser
  6. I get the request as in (1) but the new changes are not there
<!-- gh-comment-id:577713329 --> @cortopy commented on GitHub (Jan 23, 2020): sure! thanks for the prompt reply @liyasthomas I'm having a hard time updating saved requests. After reading this issue, this is what I've tried: 1. Save my request 2. Click on the Saved Request to make sure that's the one I'm editing 3. Make some changes 4. Click on the Save button (nothing happens) 5. I refresh browser 6. I get the request as in (1) but the new changes are not there
Author
Owner

@liyasthomas commented on GitHub (Jan 23, 2020):

First of all sorry for the inconveniences. I admit saving request are a bit of cumbersome.

Here's what I did to reproduce the issue:

  1. Made a request
  2. Saved it to Collection
  3. Made few changes to request
  4. Clicked on save > I choose my previous Collection > (same folder and same request) > Save
  5. Imported last saved request by clicking it from Collection tab

Everything worked as I expected. The previous request was replaced by new one.

Or am I missing something?

<!-- gh-comment-id:577719365 --> @liyasthomas commented on GitHub (Jan 23, 2020): First of all sorry for the inconveniences. I admit saving request are a bit of cumbersome. Here's what I did to reproduce the issue: 1. Made a request 2. Saved it to Collection 3. Made few changes to request 4. Clicked on save > I choose my previous Collection > (same folder and same request) > Save 5. Imported last saved request by clicking it from Collection tab Everything worked as I expected. The previous request was replaced by new one. Or am I missing something?
Author
Owner

@liyasthomas commented on GitHub (Mar 9, 2020):

Closing due to inactivity

<!-- gh-comment-id:596677669 --> @liyasthomas commented on GitHub (Mar 9, 2020): Closing due to inactivity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#75
No description provided.