mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
parent
51e9f4c57f
commit
b93b98a0ce
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",
|
op: "SaveUserSettings",
|
||||||
data: {
|
data: {
|
||||||
show_nsfw: bool,
|
show_nsfw: bool,
|
||||||
|
theme: String, // Default 'darkly'
|
||||||
auth: String
|
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
|
#### Add admin
|
||||||
##### Request
|
##### Request
|
||||||
```rust
|
```rust
|
||||||
|
Loading…
Reference in New Issue
Block a user