Delete saved searches via API (Postman example)

To delete saved searches for a specific user, you can use the Data API in 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

Postman Authorization tab with Basic Auth selected

  1. Click Send button. The search_type=saved parameter will return all saved search IDs.Postman response listing saved search IDs
  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

Postman DELETE request for a saved search

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.