API - patching project_bom_entries not understand or perhaps buggy... #656
Unanswered
electronics4fun
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have trouble to get the api with "/api/project_bom_entries/{id}" to work.
Maybe i don't understand it correctly or this is a bug.
What i have done so far:
I have already created a a ProjectBOMEntry via "/api/project_bom_entries".
This entry is visible in the database in table project_bom_entries with id 14.
I was not able to setup the BOMEntry directly to a project, that was why i started to go a workaround with patching the BOMEntry.
So i used the build in api (http://xxx/api/docs#/ProjectBOMEntry/api_project_bom_entries_id.__format_patch) to patch the entry.
For id i used the id from before: 14.
In the body i used the following minimal approach:
(I want to add the BOMEntry to project 8 which is present in the database)
The funny part is, that the post returns with code 200, but no change in the table project_bom_entries or PartDb itself is visible.
Have i done something wrong?
Is it perhaps also possible to setup a project to a BOMEntry directly via one single post?
Version used: 1.13.1
Beta Was this translation helpful? Give feedback.
All reactions