mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
parent
45a04070a3
commit
d1a01c38ed
1 changed files with 22 additions and 0 deletions
22
docs/api.md
vendored
22
docs/api.md
vendored
|
@ -149,6 +149,7 @@ Only the first user will be able to be the admin.
|
|||
op: "SaveUserSettings",
|
||||
data: {
|
||||
show_nsfw: bool,
|
||||
theme: String, // Default 'darkly'
|
||||
auth: String
|
||||
}
|
||||
}
|
||||
|
@ -200,6 +201,27 @@ Only the first user will be able to be the admin.
|
|||
}
|
||||
```
|
||||
|
||||
#### Delete Account
|
||||
|
||||
*Permananently deletes your posts and comments*
|
||||
|
||||
##### Request
|
||||
```rust
|
||||
{
|
||||
op: "DeleteAccount",
|
||||
data: {
|
||||
auth: String
|
||||
}
|
||||
}
|
||||
```
|
||||
##### Response
|
||||
```rust
|
||||
{
|
||||
op: String,
|
||||
jwt: String,
|
||||
}
|
||||
```
|
||||
|
||||
#### Add admin
|
||||
##### Request
|
||||
```rust
|
||||
|
|
Loading…
Reference in a new issue