Skip to content

Commit d27ba70

Browse files
committed
POST /gists does not require :public
There is a mismatch between the documentation and the API. If I `POST /gists` without passing a `public` parameter, a secret gist gets created (201 returned) and is visible to me at http://gist.github.com -- however the response has the attribute `public` set to nil. If this is the desired behavior, then my commit fixes the documentation to match the API. If this is not the desired behavior, then the API should return 422 if `public` is not specified
1 parent 9145f1a commit d27ba70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/v3/gists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ description
6666
: _Optional_ **string**
6767

6868
public
69-
: _Required_ **boolean**
69+
: _Optional_ **boolean** - If missing, the gist will be secret.
7070

7171
files
7272
: _Required_ **hash** - Files that make up this gist. The key of which

0 commit comments

Comments
 (0)