aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--paste.sr.ht/api.md3
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**