https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
c

careful-ice-71323

02/13/2024, 1:45 PM
Hello guys! I ran into a problem with REST API feature changing. I have self-hosted version of Growthbook running on my server. I can get my feature info with GET request to
http:/{my_domain}:3100/api/v1/features/daily_task
But when I try to change it with POST to the SAME address (that is listed in a docs as an appropriate way to change feature value), server responds with Unknown API endpoint. Is anybode aware of what is wrong with API post requests or how it can be possibly fixed? Thank you in advance!)
b

billions-xylophone-11752

02/13/2024, 3:40 PM
Hey Artemii - do you know what version of GrowthBook you're running? I just tested this on the latest version (2.7) and the post request for features is working as expected. The url for the POST is just
http:/{my_domain}:3100/api/v1/features
(note the
id
field at the end is not present).
c

careful-ice-71323

02/14/2024, 8:31 AM
@billions-xylophone-11752 you mentioned that the
id
field at the end is not present. In my case I want to update existing feature's value. Is it possible to make it without feature id field in post request?
Hello! It was solved by updating docker images. The old ones surprisingly had feature change method in documentation, but not in source code. Also it's working with http/{my domain}3100/api/v1/features/{feature_id}, as listed in official docs. Forcibly updating and rebuilding images to the latest worked like a charm. Thank you, @billions-xylophone-11752
b

billions-xylophone-11752

02/14/2024, 2:20 PM
Hey, Artemii! Oh awesome - I'm glad updating resolved the issue!
11 Views