aboutsummaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-09-03 16:23:03 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-09-10 13:39:45 +0700
commitb40b10b53d00d13f24b5667acc02b1642abc6ec4 (patch)
tree97f4663c935cff0f3ad2b72c5c08ead3ab770084 /docs/api
parentceb2e09126a48fa341d5ff84371db49ae022bc12 (diff)
downloadpleroma-b40b10b53d00d13f24b5667acc02b1642abc6ec4.tar.gz
Add an endpoint to get multiple statuses by IDs
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/differences_in_mastoapi_responses.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md
index 02f90f3e8..a21eebc96 100644
--- a/docs/api/differences_in_mastoapi_responses.md
+++ b/docs/api/differences_in_mastoapi_responses.md
@@ -91,6 +91,18 @@ Additional parameters can be added to the JSON body/Form data:
- `expires_in`: The number of seconds the posted activity should expire in. When a posted activity expires it will be deleted from the server, and a delete request for it will be federated. This needs to be longer than an hour.
- `in_reply_to_conversation_id`: Will reply to a given conversation, addressing only the people who are part of the recipient set of that conversation. Sets the visibility to `direct`.
+## GET `/api/v1/statuses`
+
+An endpoint to get multiple statuses by IDs.
+
+Required parameters:
+
+- `ids`: array of activity ids
+
+Usage example: `GET /api/v1/statuses/?ids[]=1&ids[]=2`.
+
+Returns: array of Status.
+
## PATCH `/api/v1/update_credentials`
Additional parameters can be added to the JSON body/Form data: