Skip to content

Unable to create bookmark through API #181

@shrnt

Description

@shrnt

Describe the bug
I am unable to create a bookmark when using API. Using the GUI, I was able to create a bookmark. I was also able to successfully call other endpoints like POST /auth, GET /bookmarks and GET /categories
When creating a bookmark, I get the error "value" does not match any of the allowed types.

To Reproduce
Steps to reproduce the behavior:

  1. Send API call
curl -H 'Authorization: Bearer <token>' \
-X POST \
-d '{"url": "https://www.404media.co/you-cant-post-your-way-out-of-fascism/"}' \
https://<grimoire-url>/api/bookmarks
  1. receive {"success":false,"error":"\"value\" does not match any of the allowed types"}

Expected behavior
Bookmark should be successfully created

Additional context
Just started grimoire and am trying to create and API to import my bookmark links from another app.
Using Docker, latest image. have a reverse proxy set up, although I doubt it's the problem since the other APIs work.

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions