update return empty return types to Empty (#1298)
This commit is contained in:
parent
11ab7b8d7f
commit
3c7c5caed1
|
@ -686,7 +686,7 @@ POST /api/v1/admin/accounts/:id/action HTTP/1.1
|
||||||
|
|
||||||
Perform an action against an account and log this action in the moderation history. Also resolves any open reports against this account.
|
Perform an action against an account and log this action in the moderation history. Also resolves any open reports against this account.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `admin:write:accounts`\
|
**OAuth:** User token + `admin:write:accounts`\
|
||||||
**Permissions:** Manage Users, Manage Reports\
|
**Permissions:** Manage Users, Manage Reports\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
|
|
|
@ -128,7 +128,7 @@ DELETE /api/v1/conversations/:id HTTP/1.1
|
||||||
|
|
||||||
Removes a conversation from your list of conversations.
|
Removes a conversation from your list of conversations.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:conversations`\
|
**OAuth:** User token + `write:conversations`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.6.0 - added
|
2.6.0 - added
|
||||||
|
|
|
@ -90,7 +90,7 @@ Block a domain to:
|
||||||
- remove all followers from it
|
- remove all followers from it
|
||||||
- prevent following new users from it (but does not remove existing follows)
|
- prevent following new users from it (but does not remove existing follows)
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:blocks` or `follow`\
|
**OAuth:** User token + `write:blocks` or `follow`\
|
||||||
**Version:**\
|
**Version:**\
|
||||||
1.4.0 - added
|
1.4.0 - added
|
||||||
|
@ -154,7 +154,7 @@ DELETE /api/v1/domain_blocks HTTP/1.1
|
||||||
|
|
||||||
Remove a domain block, if it exists in the user's array of blocked domains.
|
Remove a domain block, if it exists in the user's array of blocked domains.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:blocks` or `follow`\
|
**OAuth:** User token + `write:blocks` or `follow`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
1.4.0 - added
|
1.4.0 - added
|
||||||
|
|
|
@ -24,7 +24,7 @@ aliases: [
|
||||||
POST /api/v1/emails/confirmations HTTP/1.1
|
POST /api/v1/emails/confirmations HTTP/1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
**Returns:** Empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token issued to the client that created the unconfirmed user\
|
**OAuth:** User token issued to the client that created the unconfirmed user\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
3.4.0 - added
|
3.4.0 - added
|
||||||
|
|
|
@ -133,7 +133,7 @@ DELETE /api/v1/featured_tags/:id HTTP/1.1
|
||||||
|
|
||||||
Stop promoting a hashtag on your profile.
|
Stop promoting a hashtag on your profile.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:accounts`\
|
**OAuth:** User token + `write:accounts`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
3.0.0 - added
|
3.0.0 - added
|
||||||
|
|
|
@ -403,7 +403,7 @@ DELETE /api/v2/filters/:id HTTP/1.1
|
||||||
|
|
||||||
Delete a filter group with the given id.
|
Delete a filter group with the given id.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:filters`\
|
**OAuth:** User token + `write:filters`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.0.0 - added
|
4.0.0 - added
|
||||||
|
@ -730,7 +730,7 @@ DELETE /api/v2/filters/keywords/:id HTTP/1.1
|
||||||
|
|
||||||
Deletes the given filter keyword.
|
Deletes the given filter keyword.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:filters`\
|
**OAuth:** User token + `write:filters`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
4.0.0 - added
|
4.0.0 - added
|
||||||
|
@ -1344,7 +1344,7 @@ If context is not provided properly:
|
||||||
DELETE /api/v1/filters/:id HTTP/1.1
|
DELETE /api/v1/filters/:id HTTP/1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:filters`\
|
**OAuth:** User token + `write:filters`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.4.3 - added\
|
2.4.3 - added\
|
||||||
|
|
|
@ -299,7 +299,7 @@ If the `replies_policy` is not understood:
|
||||||
DELETE /api/v1/lists/:id HTTP/1.1
|
DELETE /api/v1/lists/:id HTTP/1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:lists`\
|
**OAuth:** User token + `write:lists`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.1.0 - added
|
2.1.0 - added
|
||||||
|
@ -461,7 +461,7 @@ POST /api/v1/lists/:id/accounts HTTP/1.1
|
||||||
|
|
||||||
Add accounts to the given list. Note that the user must be following these accounts.
|
Add accounts to the given list. Note that the user must be following these accounts.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:lists`\
|
**OAuth:** User token + `write:lists`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.1.0 - added
|
2.1.0 - added
|
||||||
|
@ -530,7 +530,7 @@ DELETE /api/v1/lists/:id/accounts HTTP/1.1
|
||||||
|
|
||||||
Remove accounts from the given list.
|
Remove accounts from the given list.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:lists`\
|
**OAuth:** User token + `write:lists`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.1.0 - added
|
2.1.0 - added
|
||||||
|
|
|
@ -262,7 +262,7 @@ POST /api/v1/notifications/clear HTTP/1.1
|
||||||
|
|
||||||
Clear all notifications from the server.
|
Clear all notifications from the server.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:notifications`\
|
**OAuth:** User token + `write:notifications`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
0.0.0 - added
|
0.0.0 - added
|
||||||
|
@ -303,7 +303,7 @@ POST /api/v1/notifications/:id/dismiss HTTP/1.1
|
||||||
|
|
||||||
Dismiss a single notification from the server.
|
Dismiss a single notification from the server.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:notifications`\
|
**OAuth:** User token + `write:notifications`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
1.3.0 - added
|
1.3.0 - added
|
||||||
|
@ -350,7 +350,7 @@ POST /api/v1/notifications/dismiss HTTP/1.1
|
||||||
|
|
||||||
Dismiss a single notification from the server.
|
Dismiss a single notification from the server.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:notifications`\
|
**OAuth:** User token + `write:notifications`\
|
||||||
**Version history**:\
|
**Version history**:\
|
||||||
0.0.0 - available\
|
0.0.0 - available\
|
||||||
|
|
|
@ -156,7 +156,7 @@ POST /oauth/revoke HTTP/1.1
|
||||||
|
|
||||||
Revoke an access token to make it no longer valid for use.
|
Revoke an access token to make it no longer valid for use.
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** Public\
|
**OAuth:** Public\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
x.x.x - added
|
x.x.x - added
|
||||||
|
|
|
@ -298,7 +298,7 @@ DELETE /api/v1/push/subscription HTTP/1.1
|
||||||
|
|
||||||
Removes the current Web Push API subscription.
|
Removes the current Web Push API subscription.
|
||||||
|
|
||||||
**Returns:** none\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `push`\
|
**OAuth:** User token + `push`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.4.0 - added
|
2.4.0 - added
|
||||||
|
|
|
@ -243,7 +243,7 @@ ScheduledStatus is not owned by you or does not exist
|
||||||
DELETE /api/v1/scheduled_statuses/:id HTTP/1.1
|
DELETE /api/v1/scheduled_statuses/:id HTTP/1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
**Returns:** empty object\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `write:statuses`\
|
**OAuth:** User token + `write:statuses`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.7.0 - added
|
2.7.0 - added
|
||||||
|
|
|
@ -89,7 +89,7 @@ DELETE /api/v1/suggestions/:account_id HTTP/1.1
|
||||||
|
|
||||||
Remove an account from follow suggestions.
|
Remove an account from follow suggestions.
|
||||||
|
|
||||||
**Returns:** n/a\
|
**Returns:** Empty\
|
||||||
**OAuth:** User token + `read`\
|
**OAuth:** User token + `read`\
|
||||||
**Version history:**\
|
**Version history:**\
|
||||||
2.4.3 - added
|
2.4.3 - added
|
||||||
|
|
Loading…
Reference in New Issue