aboutsummaryrefslogtreecommitdiff
path: root/docs/API
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2020-10-31 17:01:29 +0000
committerfeld <feld@feld.me>2020-10-31 17:01:29 +0000
commit37e8e8bf8ef560bc42d8b470c25e6022b369590b (patch)
treecc8d402d6fc77b23a62db3011643885f34029f30 /docs/API
parent4fbdd1c8a12fd2b3dc6b63ccbbaa7d4241fa778e (diff)
parent8e41baff40555ef7c74c8842d6fbfebc2368631a (diff)
downloadpleroma-37e8e8bf8ef560bc42d8b470c25e6022b369590b.tar.gz
Merge branch 'idempotency-key-optimistic-posting' into 'develop'
Add `idempotency_key` to the chat message entity Closes #2126 See merge request pleroma/pleroma!3015
Diffstat (limited to 'docs/API')
-rw-r--r--docs/API/chats.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/API/chats.md b/docs/API/chats.md
index aa6119670..9857aac67 100644
--- a/docs/API/chats.md
+++ b/docs/API/chats.md
@@ -173,11 +173,14 @@ Returned data:
"created_at": "2020-04-21T15:06:45.000Z",
"emojis": [],
"id": "12",
- "unread": false
+ "unread": false,
+ "idempotency_key": "75442486-0874-440c-9db1-a7006c25a31f"
}
]
```
+- idempotency_key: The copy of the `idempotency-key` HTTP request header that can be used for optimistic message sending. Included only during the first few minutes after the message creation.
+
### Posting a chat message
Posting a chat message for given Chat id works like this: