Skip to content
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

"Patch Annotation" would be a useful option #52

Closed
ceesem opened this issue Apr 29, 2024 · 1 comment
Closed

"Patch Annotation" would be a useful option #52

ceesem opened this issue Apr 29, 2024 · 1 comment

Comments

@ceesem
Copy link
Collaborator

ceesem commented Apr 29, 2024

The current implementation of update_annotation requires a complete annotation to be posted, including all original info as well as the annotation id. Typically, one one wants to update a small portion of the data, and it would be nice if there were a patch_annotation endpoint that took annotation ids and only the data that the user wanted to change, leaving any unspecified fields with their existing values.

Alternatively, since the current behavior would be identical if the user supplied a complete annotation, the current update behavior could expand to update only those fields provided without breaking anything.

@dlbrittain
Copy link
Collaborator

This will be addressed with this PR:
CAVEconnectome/DynamicAnnotationDB#47

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

No branches or pull requests

2 participants