diff options
author | Evan Hanson <evhan@foldling.org> | 2019-04-18 16:46:22 +1200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-18 09:52:17 -0400 |
commit | 9441b7d1ced6494042931d14dc3cc3398c428824 (patch) | |
tree | 6c0f29ac76e19bef8379514a2757a315872c00b0 | |
parent | 9f7aa67a43c5843d33eb8722a34b068bd1d16cbc (diff) | |
download | sr.ht-docs-9441b7d1ced6494042931d14dc3cc3398c428824.tar.gz |
Add visibility field to paste.sr.ht API docs
-rw-r--r-- | paste.sr.ht/api.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/paste.sr.ht/api.md b/paste.sr.ht/api.md index 4e8d06d..099da42 100644 --- a/paste.sr.ht/api.md +++ b/paste.sr.ht/api.md @@ -23,6 +23,7 @@ available for paste.sr.ht: "created": "timestamp", "sha": "id of this paste (SHA-1 hash)", "user": { short-form user resource }, + "visibility": "access level", "files": [ { "filename": "filename" or null, @@ -60,6 +61,7 @@ Create a new paste resource. ```json { + "visibility": "access level", "files": [ { "filename": "filename" or null, (optional) @@ -70,6 +72,7 @@ Create a new paste resource. ``` - **contents** must be a UTF-8 encoded string; binary files are not allowed +- **visibility** must be one of "public", "private", or "unlisted" **Response** |