Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tus: Document new API level for TUS endpoints.

Alex Vandiver86d5ee5bdf49
diff --git a/api_docs/changelog.md b/api_docs/changelog.md
index 638d932485a..97b36002c07 100644
--- a/api_docs/changelog.md
+++ b/api_docs/changelog.md
@@ -25,6 +25,11 @@ format used by the Zulip server that they are interacting with.
* [`GET /export/realm/consents`](/api/get-realm-export-consents): Added
a new endpoint to fetch the consents of users for their [private data
exports](/help/export-your-organization#full-export-with-member-consent).
+* `/api/v1/tus` is an endpoint implementing the [`tus`
+ protocol](https://tus.io/protocols/resumable-upload) for resumable uploads.
+ Clients which send authenticated credentials (either via browser-based
+ cookies, or API key via `Authorization` header) may use this endpoint to
+ create uploads, similar to [`POST /user_uploads`](/api/upload-file).
**Feature level 294**
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 30507614c25..7ae782a9364 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -8235,6 +8235,14 @@ paths:
can reshare it with other users by sending additional Zulip messages
containing the link.
+ For uploading larger files, `/api/v1/tus` is an endpoint
+ implementing the [`tus`
+ protocol](https://tus.io/protocols/resumable-upload) for
+ resumable uploads. Clients which send authenticated
+ credentials (either via browser-based cookies, or API key via
+ `Authorization` header) may use this endpoint to create
+ uploads.
+
[uploaded-files]: /help/manage-your-uploaded-files
[send-message]: /api/send-message
x-parameter-description: |