Browse Source

Merge pull request #2 from mastodon-land/bug-api-http-method

Correct API accounts actions http method
wxcafé 7 years ago
parent
commit
39103b3b46
1 changed files with 6 additions and 6 deletions
  1. 6 6
      Using-the-API/API.md

+ 6 - 6
Using-the-API/API.md

@@ -110,22 +110,22 @@ Returns an array of [Statuses](#status).
 
 #### Following/unfollowing an account:
 
-    GET /api/v1/accounts/:id/follow
-    GET /api/v1/accounts/:id/unfollow
+    POST /api/v1/accounts/:id/follow
+    POST /api/v1/accounts/:id/unfollow
 
 Returns the target [Account](#account).
 
 #### Blocking/unblocking an account:
 
-    GET /api/v1/accounts/:id/block
-    GET /api/v1/accounts/:id/unblock
+    POST /api/v1/accounts/:id/block
+    POST /api/v1/accounts/:id/unblock
 
 Returns the target [Account](#account).
 
 #### Muting/unmuting an account:
 
-    GET /api/v1/accounts/:id/mute
-    GET /api/v1/accounts/:id/unmute
+    POST /api/v1/accounts/:id/mute
+    POST /api/v1/accounts/:id/unmute
 
 Returns the target [Account](#account).