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

Feature request: Allow to assign a custom uuid when creating document/folder via REST API #325

Closed
anybody84 opened this issue Feb 7, 2024 · 3 comments

Comments

@anybody84
Copy link

Would be great to be able to define custom document/folder id when sending POST request to /api/nodes.

Example request body:

{
  "id": "9f3221e4-5a4c-4861-94ff-5cac9767c1da",
  "title": "My Folder",
  "ctype": "folder",
  "parent_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

This was possible in version 2.1.9 and it is not possible anymore since version 3.x

@ciur
Copy link
Member

ciur commented Feb 7, 2024

@anybody84 why would you need a custom uuid? Just trying to understand the use case for it.

@anybody84
Copy link
Author

@ciur, I use papermerge as a part of some bigger app. Currently, papermerge does not support custom metatada for documents, so I store it in a separate database (mongodb). For that reason I'd like to keep unified id across both "systems", but the mongodb record comes first and then, the id cannot be changed anymore.

@ciur
Copy link
Member

ciur commented Feb 21, 2024

PR#331

Feature will be part of 3.1.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants