Email or username:

Password:

Forgot your password?
Top-level
Darius Kazemi

@sean I see where the documentation might be failing you. "choices" isn't a path parameter, it's a "form data parameter", which means it needs to be encoded in the request like form-data davidwalsh.name/curl-post-file

6 comments
Sean Tilley

@darius oh, that’s kind of confusing.

Usually, when I see “Params”, I kind of assume it means “request params”.

Darius Kazemi

@sean they do label them separately -- this is partly just a problem with form-data in REST APIs. It's confusing.

Sean Tilley

@darius ah, you’re right. I’m still pretty new to this - it can be confusing as to which is which.

Most of the documentation is stellar, and has been really helpful in building my understanding further.

Darius Kazemi

@sean one thing that I wish all REST API endpoint documentation had was a valid example curl request that you can test against.

Sean Tilley

@darius gosh, I feel so silly now. Simply updating my request to “data” instead of “params” 100% fixed it. 😅

Oh god, is this what being a developer is like? 😭

Go Up