Skip to content

Set memoId/name via API POST not possible #5214

@lovwyr

Description

@lovwyr

Describe the bug

According to https://memos.apidocumentation.com/reference#tag/memoservice/post/api/v1/memos it shoul be possible to set name and/or memoId in the POST Request for creating an memo, right now (at least with 0.25.2) both Parameters get ignored.

Steps to reproduce

  1. Send POST to http://{{URL}}/api/v1/memos?memoId=test with Body:
    { "name": "test", "content": "test", }
  2. expect Memo with:
    {
    "name": "memos/test",
    "state": "NORMAL",
    "creator": "users/1"
    snip
    }`
  3. get Memo with:
    {
    "name": "memos/4eC7kqZx4CjVhubLCWtE37",
    "state": "NORMAL",
    "creator": "users/1"
    snip
    }`

The version of Memos you're using

0.25.2

Screenshots or additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions