~sircmpwn/sr.ht-docs

9441b7d1ced6494042931d14dc3cc3398c428824 — Evan Hanson 2 years ago 9f7aa67
Add visibility field to paste.sr.ht API docs
1 files changed, 3 insertions(+), 0 deletions(-)

M paste.sr.ht/api.md
M paste.sr.ht/api.md => paste.sr.ht/api.md +3 -0
@@ 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**