Hi Guys........ A bit of a numpty Q , i shouldn't ...
# gd-beginners
s
Hi Guys........ A bit of a numpty Q , i shouldn't really be getting this but there you go, and the error documentation is a little poor. With this request curl https://XXXXX/api/v1/entities/organizationSettings \ -H "Content-Type: application/vnd.gooddata.api+json" \ -H "Accept: application/vnd.gooddata.api+json" \ -H "Authorization: Bearer YYY” \ -X POST \ -d '{ "data": { "type": "organizationSetting", "id": "locale", "attributes": { "content": {"value": "{en-US}"} } } }' | jq I’m getting this error, { "detail": "Valid IETF BCP 47 Code locale ID must be specified", "status": 400, "title": "Bad Request", "traceId": "aa04252949cd41a6f0c59d334f3523ae" }
m
Hi Simon, the value in the content is incorrect. Can you try with
"content": {"value": "en-US"}
s
Thanks - @Moises Morales - Totally my bad. But can I suggest API error 400 type documentation should be enhanced , cos the error is actually the the value of the value input, and Valid IETF BCP 47 Code locale ID must be specified. Doesn't really help me, or either tell me where I'm going wrong. Not sure it you agree with me, just a comment from a user
m
Thanks for sharing your experience with us. I will make sure to highlight this internally to the proper parties, I agree the error could be more explicit.