Skip to content

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

Closed

Description

@anybody84

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

Activity

  1. ciur commented on Feb 7, 2024

    @ciur
    Member

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

  2. anybody84 commented on Feb 7, 2024

    @anybody84
    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.

  3. self-assigned this
    on Feb 9, 2024
  4. ciur commented on Feb 21, 2024

    @ciur
    Member

    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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions