Delete Saved Searches via API (Postman Example)

To delete saved searches for a specific user, the Data API can be use via Postman.

  1. In Postman, set your HTTP request to GET.
  2. In the URL field insert: https://api.planet.com/data/v1/searches?search_type=saved
  3. Switch to the Authorization tab and select
  • Type:  Basic Auth
  • Username: User API_KEY
  • Note: Leave the Password field empty

Screen_Shot_2021-09-29_at_7.35.07_PM.png

  1. Click Send button. The search_type=saved parameter will return all saved search IDs.Screen_Shot_2021-09-29_at_7.41.31_PM.png
  2. To delete a specific saved search, set your new HTTP request to DELETE.
  3. In the URL field insert: https://api.planet.com/data/v1/searches/{search_id}
  4. Switch to the Authorization tab and select
  • Type:  Basic Auth 
  • Username: User API_KEY 
  • Note: Leave the Password field empty

Screen_Shot_2021-09-29_at_7.48.46_PM.png

8. Click Send button to delete the specific saved search ID.

You can run steps 1, 2, 3 and 4 to check if the selected saved search was deleted.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.