aboutsummaryrefslogtreecommitdiff
path: root/docs/API
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2020-10-31 05:50:48 +0300
committereugenijm <eugenijm@protonmail.com>2020-10-31 05:50:59 +0300
commit8e41baff40555ef7c74c8842d6fbfebc2368631a (patch)
treecc8d402d6fc77b23a62db3011643885f34029f30 /docs/API
parent4fbdd1c8a12fd2b3dc6b63ccbbaa7d4241fa778e (diff)
downloadpleroma-8e41baff40555ef7c74c8842d6fbfebc2368631a.tar.gz
Add idempotency_key to the chat_message entity.
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: