|
@@ -30,7 +30,7 @@ API overview
|
|
|
- [Instance](#instance)
|
|
|
- [Mention](#mention)
|
|
|
- [Notification](#notification)
|
|
|
- - [Relationships](#relationships)
|
|
|
+ - [Relationship](#relationship)
|
|
|
- [Results](#results)
|
|
|
- [Status](#status)
|
|
|
- [Tag](#tag)
|
|
@@ -85,6 +85,17 @@ Returns an [Account](#account).
|
|
|
|
|
|
Returns the authenticated user's [Account](#account).
|
|
|
|
|
|
+#### Updating the current user:
|
|
|
+
|
|
|
+ PATCH /api/v1/accounts/update_credentials
|
|
|
+
|
|
|
+Form data:
|
|
|
+
|
|
|
+- `display_name`: The name to display in the user's profile
|
|
|
+- `note`: A new biography for the user
|
|
|
+- `avatar`: A base64 encoded image to display as the user's avatar (e.g. `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUoAAADrCAYAAAA...`)
|
|
|
+- `header`: A base64 encoded image to display as the user's header image (e.g. `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUoAAADrCAYAAAA...`)
|
|
|
+
|
|
|
#### Getting an account's followers:
|
|
|
|
|
|
GET /api/v1/accounts/:id/followers
|
|
@@ -110,22 +121,22 @@ Returns an array of [Statuses](#status).
|
|
|
|
|
|
#### Following/unfollowing an account:
|
|
|
|
|
|
- POST /api/v1/accounts/:id/follow
|
|
|
- POST /api/v1/accounts/:id/unfollow
|
|
|
+ GET /api/v1/accounts/:id/follow
|
|
|
+ GET /api/v1/accounts/:id/unfollow
|
|
|
|
|
|
Returns the target [Account](#account).
|
|
|
|
|
|
#### Blocking/unblocking an account:
|
|
|
|
|
|
- POST /api/v1/accounts/:id/block
|
|
|
- POST /api/v1/accounts/:id/unblock
|
|
|
+ GET /api/v1/accounts/:id/block
|
|
|
+ GET /api/v1/accounts/:id/unblock
|
|
|
|
|
|
Returns the target [Account](#account).
|
|
|
|
|
|
#### Muting/unmuting an account:
|
|
|
|
|
|
- POST /api/v1/accounts/:id/mute
|
|
|
- POST /api/v1/accounts/:id/unmute
|
|
|
+ GET /api/v1/accounts/:id/mute
|
|
|
+ GET /api/v1/accounts/:id/unmute
|
|
|
|
|
|
Returns the target [Account](#account).
|
|
|
|
|
@@ -351,15 +362,15 @@ Returns an empty object.
|
|
|
|
|
|
#### Reblogging/unreblogging a status:
|
|
|
|
|
|
- POST /api/vi/statuses/:id/reblog
|
|
|
- POST /api/vi/statuses/:id/unreblog
|
|
|
+ POST /api/v1/statuses/:id/reblog
|
|
|
+ POST /api/v1/statuses/:id/unreblog
|
|
|
|
|
|
Returns the target [Status](#status).
|
|
|
|
|
|
#### Favouriting/unfavouriting a status:
|
|
|
|
|
|
- POST /api/vi/statuses/:id/favourite
|
|
|
- POST /api/vi/statuses/:id/unfavourite
|
|
|
+ POST /api/v1/statuses/:id/favourite
|
|
|
+ POST /api/v1/statuses/:id/unfavourite
|
|
|
|
|
|
Returns the target [Status](#status).
|
|
|
|
|
@@ -456,7 +467,7 @@ ___
|
|
|
| `acct` | Equals `username` for local users, includes `@domain` for remote ones |
|
|
|
| `id` | Account ID |
|
|
|
|
|
|
-### Notifications
|
|
|
+### Notification
|
|
|
|
|
|
| Attribute | Description |
|
|
|
| ------------------------ | ----------- |
|
|
@@ -464,9 +475,9 @@ ___
|
|
|
| `type` | One of: "mention", "reblog", "favourite", "follow" |
|
|
|
| `created_at` | The time the notification was created |
|
|
|
| `account` | The [Account](#account) sending the notification to the user |
|
|
|
-| `status` | The [Status](#status) associated with the notification, if applicible |
|
|
|
+| `status` | The [Status](#status) associated with the notification, if applicable |
|
|
|
|
|
|
-### Relationships
|
|
|
+### Relationship
|
|
|
|
|
|
| Attribute | Description |
|
|
|
| ------------------------ | ----------- |
|
|
@@ -516,7 +527,7 @@ ___
|
|
|
| `tags` | An array of [Tags](#tag) |
|
|
|
| `application` | [Application](#application) from which the status was posted |
|
|
|
|
|
|
-### Tags
|
|
|
+### Tag
|
|
|
|
|
|
| Attribute | Description |
|
|
|
| ------------------------ | ----------- |
|