Skip to content

feat(arcgis-rest-portal): add removeItemThumbnail() #1202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

arcenter
Copy link
Contributor

Resolves #780.

This PR adds the removeItemThumbnail() function, allowing users to delete an item's thumbnail via a POST request to the ArcGIS REST API.

Changes

  • Implements removeItemThumbnail() in remove.ts.
  • Adds unit tests in remove.test.ts to verify correct API calls and responses.
  • Contains documentation with usage examples.

Testing

  • Ran npm test to confirm all tests pass.

Note: This is my first PR to this project. I’m open to any suggestions or feedback!

Copy link
Contributor

@gavinr-maps gavinr-maps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arcenter thanks for the submission!

I have done some testing and it seems like this works fine.

@gavinr-maps gavinr-maps requested a review from patrickarlt March 17, 2025 19:45
Copy link
Contributor

@patrickarlt patrickarlt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM!

@gavinr-maps gavinr-maps merged commit a1b51f3 into Esri:main Apr 7, 2025
2 checks passed
MikeTschudi pushed a commit that referenced this pull request Apr 7, 2025
# @esri/arcgis-rest-portal [4.6.0](https://github.com/Esri/arcgis-rest-js/compare/@esri/[email protected]...@esri/[email protected]) (2025-04-07)

### Features

* **arcgis-rest-portal:** add removeItemThumbnail() to delete item thumbnails ([#1202](#1202)) ([a1b51f3](a1b51f3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add deleteItemThumbnail()
3 participants