This message was deleted.
# announcements
w
This message was deleted.
b
Hi Jane, thanks for reaching out! I’ll run this by our API team and let you know what I find out
Jane, would you mind sharing the cURL request or code you're using to make the API call that is erroring out?
a
Thanks! Here’s an example (removing all our details) of the style of what I’ve tried that’s not working for me to update an experiment
Copy code
curl -X POST [api_home]/api/v1/experiments/experiment_id \
 -d '{"id":"experiment_id", "name":"Sample Test",[…]}' \
 -u [my_secret_key]:
I similarly tried creating a test experiment
Copy code
curl -X POST [api_home]/api/v1/experiments \
 -d '{"id":"experiment_id", "name":Sample Test",[…]}' \
 -u [my_secret_key]:
I tried different variations on the key quoting but none of that helped
b
Hi Jane, these were very helpful, thank you
We are still looking into this
Good news! Looks like all that was missing was the Content Type header. If you add it to your cURL request it should work perfectly:
Copy code
curl -X POST [api_home]/api/v1/experiments/experiment_id \
  -d '{ "name": "updated_name"}' \
  -H 'Content-Type: application/json' \
  -u secret_1234:
@ambitious-apartment-58735 ^
a
i had tried with that before but let me try again
🤔 1
i tried creating an experiment following that and added the require arguments but still get
Unrecognized key(s) in object: 'settings'"
is it possible share a working example for creating a new experiment? i can test if that works for me
b
Hi Jane, I'm perplexed! I will connect with our API engineer again tomorrow and hopefully we can give you a new approach to try.
👍 1
144 Views