This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
Update Product Userfields #197
Answered
by
SebRut
horphi0815
asked this question in
Support
-
Hi, i would like to understand, how to add values into the user defined fields during |
Beta Was this translation helpful? Give feedback.
Answered by
SebRut
Sep 29, 2021
Replies: 1 comment 5 replies
-
Hey, these methods use the "generic entity interactions" (https://en.demo.grocy.info/api#/Generic%20entity%20interactions) APIs internally and just pass the data object as json to the API. data = {
"userfields": {
"myField1" : "myValue1"
}
}
grocy.add_generic(entity_type=EntityType.PRODUCTS, data) |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
horphi0815
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, these methods use the "generic entity interactions" (https://en.demo.grocy.info/api#/Generic%20entity%20interactions) APIs internally and just pass the data object as json to the API.
So to add/update userfields you would just pass a data object with the userfields as a key-value repo like this: