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

API v2 delete note #733

Open
8 tasks done
c8y3 opened this issue Feb 28, 2025 · 1 comment · Fixed by #734
Open
8 tasks done

API v2 delete note #733

c8y3 opened this issue Feb 28, 2025 · 1 comment · Fixed by #734
Assignees
Labels
enhancement New feature or request

Comments

@c8y3
Copy link
Contributor

c8y3 commented Feb 28, 2025

Implement endpoint DELETE /api/v2/cases/{case_identifier}/notes/{identifier} to delete a note.

  • return 204 in case of success
  • return an empty body in case of success
  • if the case is not found, return 404
  • if the note is not found, return 404
  • create method in the business layer
  • deprecate POST /case/notes/delete/{note_id}
  • openapi: document endpoint
  • openapi: deprecate POST /case/notes/delete/{note_id}
@c8y3 c8y3 added the enhancement New feature or request label Feb 28, 2025
@c8y3 c8y3 self-assigned this Feb 28, 2025
@c8y3
Copy link
Contributor Author

c8y3 commented Feb 28, 2025

  • fixed: PUT /api/v2/cases/{case_identifier}/notes/{identifier} should return 403 when user has no access to case
  • return 403 when user is denied permission to case
  • DELETE /api/v2/cases/{case_identifier}/notes/{identifier} returns 404, after delete

@c8y3 c8y3 linked a pull request Feb 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant