summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2021-09-12 00:10:36 -0400
committerTusooa Zhu <tusooa@kazv.moe>2021-12-28 01:10:39 -0500
commitdf90b3e66ab3d53f727a7978696e32fe01d48f0f (patch)
treee4ce2b4f8d631af87e0f70c2aeb2f249d87fafdb /docs
parent0af77b20c19240479ea287446cc1c96a67318b2e (diff)
Document move_account API
Ref: emit-move
Diffstat (limited to 'docs')
-rw-r--r--docs/development/API/pleroma_api.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/development/API/pleroma_api.md b/docs/development/API/pleroma_api.md
index 0e7367a72..cd3cd3643 100644
--- a/docs/development/API/pleroma_api.md
+++ b/docs/development/API/pleroma_api.md
@@ -341,6 +341,16 @@ See [Admin-API](admin_api.md)
* Response: JSON. Returns `{"status": "success"}` if the change was successful, `{"error": "[error message]"}` otherwise
* Note: Currently, Mastodon has no API for changing email. If they add it in future it might be incompatible with Pleroma.
+## `/api/pleroma/move_account`
+### Move account
+* Method `POST`
+* Authentication: required
+* Params:
+ * `password`: user's password
+ * `target_account`: the nickname of the target account (e.g. `foo@example.org`)
+* Response: JSON. Returns `{"status": "success"}` if the change was successful, `{"error": "[error message]"}` otherwise
+* Note: This endpoint emits a `Move` activity to all followers of the current account. Some remote servers will automatically unfollow the current account and follow the target account upon seeing this, but this depends on the remote server implementation and cannot be guaranteed. For local followers , they will automatically unfollow and follow if and only if they have set the `allow_following_move` preference ("Allow auto-follow when following account moves").
+
# Pleroma Conversations
Pleroma Conversations have the same general structure that Mastodon Conversations have. The behavior differs in the following ways when using these endpoints: