POST /api/accounts/ - group_id object does not exist. #42

Closed
opened 2025-12-28 23:24:33 +01:00 by adam · 3 comments
Owner

Originally created by @gwynnbleiidd on GitHub (May 11, 2025).

Hello, when creating an account, I receive
{\"group_id\":[\"Invalid pk \\\"4\\\" - object does not exist.\"]}

Despite the fact that here is the answer from /api/account-groups/

{ "count": 3, "next": null, "previous": null, "results": [ { "id": 1, "visibility": "private", "name": "Stocks", "owner": 1, "shared_with": [] }, { "id": 2, "visibility": "private", "name": "Crypto", "owner": 1, "shared_with": [] }, { "id": 4, "visibility": "private", "name": "Libertex", "owner": 1, "shared_with": [] } ] }

And here is the body of the request

{ "name": "Libertex {{ $json.name }}", "group_id": 4, "currency_id": {{ $json.id }}, "exchange_currency_id": 2, "is_asset": true }

Through the interface, everything is well created. And it is for this group

Originally created by @gwynnbleiidd on GitHub (May 11, 2025). Hello, when creating an account, I receive `{\"group_id\":[\"Invalid pk \\\"4\\\" - object does not exist.\"]}` Despite the fact that here is the answer from /api/account-groups/ `{ "count": 3, "next": null, "previous": null, "results": [ { "id": 1, "visibility": "private", "name": "Stocks", "owner": 1, "shared_with": [] }, { "id": 2, "visibility": "private", "name": "Crypto", "owner": 1, "shared_with": [] }, { "id": 4, "visibility": "private", "name": "Libertex", "owner": 1, "shared_with": [] } ] }` And here is the body of the request `{ "name": "Libertex {{ $json.name }}", "group_id": 4, "currency_id": {{ $json.id }}, "exchange_currency_id": 2, "is_asset": true }` Through the interface, everything is well created. And it is for this group
adam closed this issue 2025-12-28 23:24:33 +01:00
Author
Owner

@eitchtee commented on GitHub (May 11, 2025):

Thanks for catching that.

I'm releasing 0.12.10 right now with a fix, should take a few minutes to become available, let me know how it goes.

@eitchtee commented on GitHub (May 11, 2025): Thanks for catching that. I'm releasing 0.12.10 right now with a fix, should take a few minutes to become available, let me know how it goes.
Author
Owner

@gwynnbleiidd commented on GitHub (May 11, 2025):

Perfect) uploaded small part of stocks transaction

Image

@gwynnbleiidd commented on GitHub (May 11, 2025): Perfect) uploaded small part of stocks transaction ![Image](https://github.com/user-attachments/assets/54971dea-057e-4a65-92c3-a5fae7ac11f0)
Author
Owner

@eitchtee commented on GitHub (May 11, 2025):

Great! Hope you like WYGIWYH.

If you have any suggestions for improvements open an issue, development is slow right now due to real life stuff, but I'm always open to cool features.

@eitchtee commented on GitHub (May 11, 2025): Great! Hope you like WYGIWYH. If you have any suggestions for improvements open an issue, development is slow right now due to real life stuff, but I'm always open to cool features.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WYGIWYH#42